Skip to content

Commit

Permalink
test: run tests on node (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Aug 30, 2019
1 parent 74643b1 commit 4ad5c2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"prepublishOnly": "npm-run-all build-prod && vjsverify --verbose",
"start": "npm-run-all -p server watch",
"server": "karma start scripts/karma.conf.js --singleRun=false --auto-watch",
"test": "npm-run-all lint build-test && karma start scripts/karma.conf.js",
"test": "npm-run-all lint build-test test:*",
"test:browser": "karma start scripts/karma.conf.js",
"test:node": "qunit test/dist/bundle.js",
"posttest": "shx cat test/dist/coverage/text.txt",
"preversion": "npm test",
"version": "is-prerelease || npm run update-changelog && git add CHANGELOG.md",
Expand Down
4 changes: 4 additions & 0 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ const options = {
};
const config = generate(options);

if (config.builds.test) {
config.builds.test.output[0].format = 'umd';
}

// Add additonal builds/customization here!

// export the builds to rollup
Expand Down

0 comments on commit 4ad5c2d

Please sign in to comment.