-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
3c7d5cf
to
a330123
Compare
389c0e0
to
26a90d7
Compare
26a90d7
to
10a2277
Compare
chai.use(chaiEnzyme()); | ||
chai.use(chaiAsPromised); | ||
sinonStubPromise(sinon); | ||
|
||
// load all tests into one bundle | ||
const testsContext = require.context('.', true, /\.test\.js$/); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use es6 import instead of require.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it is possible to use import
for this task. If you know how, please tell me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can try this https://github.com/crisberrios/dir-loader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked at dir-loader
, but it is still using require
, so I don't see how does it help.
I don't see what is the problem with the current solution.
Closes #589