IssueNo:#I53XB0

Description: add js testrunner suport
Sig: SIG_ApplicationFramework
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: guyuanzhang <zhangguyuan@huawei.com>

Change-Id: I7aa65aa439cdf8624dc0129c3f9925d9e832dc0c
This commit is contained in:
guyuanzhang 2022-04-21 17:28:19 +08:00
parent be9468773b
commit 06a00ead1c

View File

@ -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`)
}