From 72743d8c6158a024cccbdc6f499c3c85318db1b2 Mon Sep 17 00:00:00 2001 From: laibo102 Date: Wed, 3 Aug 2022 17:01:25 +0800 Subject: [PATCH] Update: test script Signed-off-by: laibo102 Change-Id: I1a59fb83848bd67b7277bdef4a9e3cf7753616c7 --- compiler/package.json | 4 +--- compiler/test/test.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/compiler/package.json b/compiler/package.json index 1a04d56..8f99725 100644 --- a/compiler/package.json +++ b/compiler/package.json @@ -13,9 +13,7 @@ "build": "npm run generateSyntaxParser && npm run generateDeclarations && ./node_modules/.bin/babel ./src --out-dir lib --extensions .ts && node uglify-source.js lib", "create": "node ./lib/create.js --env projectName", "compile": "webpack --config webpack.config.js --env buildMode=debug projectName", - "test": "npm run build && mocha -r mocha-context/register test/test.js", - "testPU": "npm run build && mocha -r mocha-context/register test/test.js --partialUpdate", - "testAll": "npm run build && mocha -r mocha-context/register test/test.js && mocha -r mocha-context/register test/test.js --partialUpdate", + "test": "npm run build && mocha -r mocha-context/register test/test.js && mocha -r mocha-context/register test/test.js --partialUpdate", "generateDeclarations": "node ./build_declarations_file.js ../../../interface/sdk-js/api/@internal/component/ets ./declarations ./lib", "generateSyntaxParser": "node build_parser.js ./syntax_parser/dist", "postinstall": "node npm-install.js" diff --git a/compiler/test/test.js b/compiler/test/test.js index b226cae..b010fa4 100644 --- a/compiler/test/test.js +++ b/compiler/test/test.js @@ -64,7 +64,7 @@ function expectActual(name, filePath) { mocha.describe('compiler', () => { let utPath = path.resolve(__dirname, './ut'); if (process.argv.includes('--partialUpdate')) { - sdkVersion.compatibleSdkVersion = '9'; + sdkVersion.compatibleSdkVersion = 9; utPath = path.resolve(__dirname, './utForPartialUpdate'); } const utFiles = [];