Skip to content

Commit

Permalink
[CONFIG] Node script to run test: jest command fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Diaz committed May 14, 2024
1 parent cea6362 commit 3c57fd7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/node-coverage.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: npm run lint

- name: Run the tests
run: npm test -- --coverage
run: npm run jest:ci -- --coverage

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ jobs:
run: npm run lint

- name: Run the tests
run: npm test
run: npm run jest:ci
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test/static: dependencies
npm run lint

test: env dependencies test/static
npm run test
npm run jest:ci

coverage: test

Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
"typescript": "^5.4.5"
},
"scripts": {
"start": "npm run test",
"lint": "npx eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
"test": "jest"
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
"jest:bruteforce": "BRUTEFORCE=true node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
"jest:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
"prettier": "npx prettier --write 'src/**/*.js'",
"test": "jest",
"update-all": "npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
}
}

0 comments on commit 3c57fd7

Please sign in to comment.