diff --git a/src/loader.js b/src/loader.js index 9908af1..bf83674 100644 --- a/src/loader.js +++ b/src/loader.js @@ -194,6 +194,9 @@ function loader (source) { } function checkApp(_this) { + if (process.env.abilityType === 'testrunner') { + return true; + } return _this.resourcePath === path.resolve(process.env.projectPath, process.env.abilityType === 'page' ? 'app.js' : `${process.env.abilityType}.js`) }