* Force a fresh evaluation of log.js so the mocked logger is observed. * @returns {Promise } the freshly evaluated log module
()
| 30 | * @returns {Promise<typeof import("../../../client-src/utils/log")>} the freshly evaluated log module |
| 31 | */ |
| 32 | function freshLogModule() { |
| 33 | const url = import.meta.resolve("../../../client-src/utils/log.js"); |
| 34 | return import(`${url}?t=${Date.now()}-${Math.random()}`); |
| 35 | } |
| 36 | |
| 37 | it("should set info as the default level and create logger", async () => { |
| 38 | await freshLogModule(); |
no outgoing calls
no test coverage detected
searching dependent graphs…