Skip to content

Commit

Permalink
Document helper precompilation caveat (in code at least)
Browse files Browse the repository at this point in the history
  • Loading branch information
novemberborn committed Feb 9, 2017
1 parent fa9abec commit 98b34c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ class Api extends EventEmitter {
_precompileHelpers() {
this._precompiledHelpers = {};

// Assumes the tests only load helpers from within the `resolveTestsFrom`
// directory. Without arguments this is the `projectDir`, else it's
// `process.cwd()` which may be nested too deeply. This will be solved
// as we implement RFC 001 and move helper compilation into the worker
// processes, avoiding the need for precompilation.
return new AvaFiles({cwd: this.options.resolveTestsFrom})
.findTestHelpers()
.map(file => { // eslint-disable-line array-callback-return
Expand Down

0 comments on commit 98b34c6

Please sign in to comment.