Skip to content

Commit 85e8776

Browse files
committed
tests: run tests via .js file to configure color
1 parent c3db07f commit 85e8776

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"scripts": {
4141
"lint": "jshint bin/ lib/ test/",
4242
"fmt": "pre-commit run --all-files",
43-
"test": "nyc jasmine JASMINE_CONFIG_PATH=test/jasmine.json",
43+
"test": "nyc node test/jasmine.js",
4444
"coverage-html": "nyc report --reporter=html",
4545
"codecov": "nyc report --reporter=lcov && codecov"
4646
}

test/jasmine.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var Jasmine = require("jasmine");
2+
var jasmine = new Jasmine();
3+
4+
jasmine.loadConfig({
5+
// Config reference: https://jasmine.github.io/api/npm/edge/Configuration.html
6+
random: false,
7+
spec_dir: "test",
8+
spec_files: ["api_spec.js"],
9+
stopSpecOnExpectationFailure: false,
10+
});
11+
jasmine.configureDefaultReporter({
12+
// Options reference: https://jasmine.github.io/api/npm/edge/ConsoleReporterOptions.html
13+
showColors: true,
14+
});
15+
jasmine.execute();

test/jasmine.json

-5
This file was deleted.

0 commit comments

Comments
 (0)