Skip to content

Commit

Permalink
tests: run tests via .js file to configure color
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Nov 24, 2023
1 parent c3db07f commit 85e8776
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
15 changes: 15 additions & 0 deletions test/jasmine.js
Original file line number Diff line number Diff line change
@@ -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();
5 changes: 0 additions & 5 deletions test/jasmine.json

This file was deleted.

0 comments on commit 85e8776

Please sign in to comment.