Browse Source

Document helper precompilation caveat (in code at least) (#1251)

use-hullabaloo
Mark Wubben 8 years ago
committed by Sindre Sorhus
parent
commit
73394f155a
  1. 5
      api.js

5
api.js

@ -119,6 +119,11 @@ class Api extends EventEmitter {
_precompileHelpers() { _precompileHelpers() {
this._precompiledHelpers = {}; 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}) return new AvaFiles({cwd: this.options.resolveTestsFrom})
.findTestHelpers() .findTestHelpers()
.map(file => { // eslint-disable-line array-callback-return .map(file => { // eslint-disable-line array-callback-return

Loading…
Cancel
Save