Merge pull request #1678 from balena-os/add-clean-step

Added clean step to remove previous builds before running tests
This commit is contained in:
bulldozer-balena[bot]
2021-04-26 20:50:50 +00:00
committed by GitHub

View File

@ -12,7 +12,7 @@
"build": "npm run release && webpack", "build": "npm run release && webpack",
"build:debug": "npm run release && npm run packagejson:copy", "build:debug": "npm run release && npm run packagejson:copy",
"lint": "balena-lint -e ts -e js --typescript src/ test/ typings/ build-utils/ webpack.config.js && tsc --noEmit && tsc --noEmit --project tsconfig.js.json", "lint": "balena-lint -e ts -e js --typescript src/ test/ typings/ build-utils/ webpack.config.js && tsc --noEmit && tsc --noEmit --project tsconfig.js.json",
"test": "npm run test-nolint", "test": "npm run clean && npm run test-nolint",
"posttest": "npm run lint", "posttest": "npm run lint",
"test-nolint": "npm run test:build && TEST=1 mocha", "test-nolint": "npm run test:build && TEST=1 mocha",
"test:build": "npm run test-build && npm run testitems:copy && npm run packagejson:copy", "test:build": "npm run test-build && npm run testitems:copy && npm run packagejson:copy",
@ -23,7 +23,8 @@
"release": "tsc --project tsconfig.release.json && mv build/src/* build", "release": "tsc --project tsconfig.release.json && mv build/src/* build",
"packagejson:copy": "cp package.json build/", "packagejson:copy": "cp package.json build/",
"testitems:copy": "cp -r test/data build/test/", "testitems:copy": "cp -r test/data build/test/",
"sync": "ts-node sync/sync.ts" "sync": "ts-node sync/sync.ts",
"clean": "rimraf build"
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {