diff --git a/package.json b/package.json index e076fab..7613d8d 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scripts/rollup.config.js b/scripts/rollup.config.js index c931417..d2a927c 100644 --- a/scripts/rollup.config.js +++ b/scripts/rollup.config.js @@ -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