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

File index.js

test/cases/context/issue-5750/index.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1it("should not use regexps with the g flag", function() {
2 expect(require.context("./folder", true, /a/).keys().length).toBe(1);
3 expect(require.context("./folder", true, /a/g).keys().length).toBe(0);
4});

Callers

nothing calls this directly

Calls 3

contextMethod · 0.80
keysMethod · 0.65
itFunction · 0.50

Tested by

no test coverage detected