mirror of https://github.com/webpack/webpack.git
chore: Add a todo
This commit is contained in:
parent
fe9d2509ab
commit
00bacbec25
|
|
@ -1,8 +1,11 @@
|
|||
// TODO: Why is this giving "No tests exported by test case"?
|
||||
it("should compile to lazy imported context", done => {
|
||||
const req = require.context("./modules", /^\.\/.*\.js$/);
|
||||
const result = req("./demo");
|
||||
|
||||
expect(result).toBe(42);
|
||||
|
||||
done();
|
||||
// It's not clear why timeout would be needed now since req is a sync call
|
||||
setTimeout(() => {
|
||||
expect(result).toBe(42);
|
||||
done();
|
||||
}, 1000);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue