diff --git a/package.json b/package.json index e43466d8..5654e0fb 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "scripts": { "lint": "jshint bin/ lib/ test/", "fmt": "pre-commit run --all-files", - "test": "nyc jasmine JASMINE_CONFIG_PATH=test/jasmine.json", + "test": "nyc node test/jasmine.js", "coverage-html": "nyc report --reporter=html", "codecov": "nyc report --reporter=lcov && codecov" } diff --git a/test/jasmine.js b/test/jasmine.js new file mode 100644 index 00000000..729df962 --- /dev/null +++ b/test/jasmine.js @@ -0,0 +1,15 @@ +var Jasmine = require("jasmine"); +var jasmine = new Jasmine(); + +jasmine.loadConfig({ + // Config reference: https://jasmine.github.io/api/npm/edge/Configuration.html + random: false, + spec_dir: "test", + spec_files: ["api_spec.js"], + stopSpecOnExpectationFailure: false, +}); +jasmine.configureDefaultReporter({ + // Options reference: https://jasmine.github.io/api/npm/edge/ConsoleReporterOptions.html + showColors: true, +}); +jasmine.execute(); diff --git a/test/jasmine.json b/test/jasmine.json deleted file mode 100644 index 17da6ab6..00000000 --- a/test/jasmine.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "spec_dir": "test", - "stopSpecOnExpectationFailure": false, - "spec_files": ["*spec.js"] -}