Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
it(
"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
context
Method · 0.80
keys
Method · 0.65
it
Function · 0.50
Tested by
no test coverage detected