Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ index.js
File
index.js
test/cases/context/issue-524/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
it(
"should support an empty context"
,
function
() {
2
var
c = require.context(
"."
, true, /^nothing$/);
3
expect(typeof c.id ===
"number"
|| typeof c.id ===
"string"
).toBeTruthy();
4
expect(
function
() {
Callers
nothing calls this directly
Calls
5
context
Method · 0.80
resolve
Method · 0.65
keys
Method · 0.65
it
Function · 0.50
c
Function · 0.50
Tested by
no test coverage detected