MCPcopy Index your code
hub / github.com/webpack/webpack-dev-server / freshLogModule

Function freshLogModule

test/client/utils/log.test.js:32–35  ·  view source on GitHub ↗

* Force a fresh evaluation of log.js so the mocked logger is observed. * @returns {Promise } the freshly evaluated log module

()

Source from the content-addressed store, hash-verified

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();

Callers 1

log.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…