mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
Update: test script
Signed-off-by: laibo102 <laibo2@huawei.com> Change-Id: I1a59fb83848bd67b7277bdef4a9e3cf7753616c7
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user