Open li3 opened 6 years ago
Looks like require.resolve('../lambda')
isn't defined.
The result come after the test results because you're calling done()
when the generator is ready, not when it's done running.
That was my mistake I was trying to cleanup the example so it didn't include stuff I was actually working on. require.resolve('../lambda')
should have been require.resolve('../sub')
The test itself works fine as long as coverage isn't turned on.
The async test is still broken. The coverage might slow down your test, so the error appears before jest exit.
When using jest to collect code coverage, and a generator that calls
this.composeWith
, code coverage fails for some reason. Any ideas? Thanks in advanced.On Windows 10 x64 Node: 6.11.2
Dependencies:
Minimal Example:
/generators/app/index.js
:/generators/sub/index.js
:/test/app/index.test.js
:Output: