Skip to content

Commit

Permalink
fixes test execution by removing extraneous calls to pre-test and pos…
Browse files Browse the repository at this point in the history
…t-test scripts
  • Loading branch information
kezike committed Dec 1, 2023
1 parent dd82272 commit d602596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"prettier": "prettier src --write",
"rebuild": "npm run clear && npm run build",
"test": "npm run lint && npm run test-node",
"test-karma": "node pre-test.js; npm run build-test && karma start karma.conf.js && rm -rf dist/test; node post-test.js",
"test-node": "node pre-test.js; npm run build-test && mocha dist/test/*.spec.js && rm -rf dist/test; node post-test.js"
"test-karma": "npm run build-test && karma start karma.conf.js && rm -rf dist/test",
"test-node": "npm run build-test && mocha dist/test/*.spec.js && rm -rf dist/test"
},
"files": [
"dist",
Expand Down
4 changes: 2 additions & 2 deletions post-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const updateTsconfig = async () => {
fs.writeFileSync(tsconfigFilePath, JSON.stringify(tsconfigJson, null, 2));
};

// combine pre-test subscripts
// combine post-test subscripts
const runPostTest = async () => {
await updatePackageJson();
updateTsconfig();
};

// run pre-test subscripts
// run post-test subscripts
runPostTest();

0 comments on commit d602596

Please sign in to comment.