MCPcopy
hub / github.com/webpack/webpack / index.js

File index.js

test/cases/parsing/extract-require/index.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1function testCase(number) {
2 expect(require(number === 1 ? "./folder/file1" : number === 2 ? "./folder/file2" : number === 3 ? "./folder/file3" : "./missingModule")).toBe("file" + number);
3 expect(require(
4 number === 1 ? "./folder/file1" :

Callers

nothing calls this directly

Calls 4

testFuncFunction · 0.85
requireFunction · 0.70
testCaseFunction · 0.70
itFunction · 0.50

Tested by

no test coverage detected