MCPcopy
hub / github.com/webpack/tapable / expectNoSyntaxError

Function expectNoSyntaxError

test/HookCodeFactory.test.js:9–12  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

7const HookCodeFactoryTest = require("../lib/HookCodeFactory");
8
9const expectNoSyntaxError = (code) => {
10 // eslint-disable-next-line no-new
11 new Function("a, b, c", code);
12};
13
14const pretty = (code) =>
15 require("prettier-1").format(code, { filepath: "code.js" });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…