Skip to content

Commit

Permalink
chore: use nodejs test runner options
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Nov 22, 2024
1 parent 74b5dae commit 80f664c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 64 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/mqttjs-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uses: codecov/codecov-action@v5
with:
directory: ./coverage/
fail_ci_if_error: false
fail_ci_if_error: true
flags: unittests
name: codecov-mqttjs
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -60,10 +60,10 @@ jobs:
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
directory: ./coverage/
files: ./junit.xml
fail_ci_if_error: false
flags: unittests
name: codecov-mqttjs
flags: unittests-results
name: codecov-mqttjs-test-results
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ test/typescript/*.map
**/typings/**
.vscode/
.npmrc
junit.xml

/build/

2 changes: 1 addition & 1 deletion nyc.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
],
reporter: [
'text',
'lcov',
'lcov'
],
branches: 80,
functions: 89,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
"build:browser": "node esbuild.js",
"build": "npm run build:ts && npm run build:browser",
"prepare": "npm run build",
"unit-test:node": "node_modules/.bin/nyc node -r esbuild-register test/runTests.ts",
"unit-test:node": "node -r esbuild-register --test-concurrency 4 --test-reporter=junit --test-reporter-destination=junit.xml --test-reporter=spec --test-reporter-destination=stdout --test test/*.ts ",
"unit-test:browser": "wtr",
"test:node": "npm run unit-test:node",
"test:node": "node_modules/.bin/nyc npm run unit-test:node",
"test:browser": "npm run build && npm run unit-test:browser",
"test": "npm run test:node",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
Expand Down
57 changes: 0 additions & 57 deletions test/runTests.ts

This file was deleted.

0 comments on commit 80f664c

Please sign in to comment.