diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a069e566..7e81271b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9b90571..eeeea3a8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: "16" + node-version: "20" # Action Repo: https://github.com/actions/cache - name: "Cache node_modules" @@ -64,7 +64,8 @@ jobs: - "14" - "16" - "18" - - "19" + - "20" + - current steps: - uses: actions/checkout@v4 diff --git a/package.json b/package.json index e43466d8..77c358f6 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": "FORCE_COLOR=3 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..77d898fb --- /dev/null +++ b/test/jasmine.js @@ -0,0 +1,19 @@ +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: ["*_spec.js"], +}); +jasmine.configureDefaultReporter({ + // Options reference: https://jasmine.github.io/api/npm/edge/ConsoleReporterOptions.html + // + // showColors influences the green dots for each successful test, but not the + // report after tests complete from istanbul-reports depending on + // supports-color package that respects the FORCE_COLOR environment variable. + // + 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"] -}