chore: Add a todo

This commit is contained in:
Juho Vepsäläinen 2021-05-31 15:06:58 +03:00
parent fe9d2509ab
commit 00bacbec25
1 changed files with 6 additions and 3 deletions

View File

@ -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);
});