Skip to content

Commit 3c57fd7

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Node script to run test: jest command fixed.
1 parent cea6362 commit 3c57fd7

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/node-coverage.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: npm run lint
3737

3838
- name: Run the tests
39-
run: npm test -- --coverage
39+
run: npm run jest:ci -- --coverage
4040

4141
- name: Upload coverage reports to Codecov with GitHub Action
4242
uses: codecov/codecov-action@v4

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737
run: npm run lint
3838

3939
- name: Run the tests
40-
run: npm test
40+
run: npm run jest:ci

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ test/static: dependencies
6565
npm run lint
6666

6767
test: env dependencies test/static
68-
npm run test
68+
npm run jest:ci
6969

7070
coverage: test
7171

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@
2525
"typescript": "^5.4.5"
2626
},
2727
"scripts": {
28+
"start": "npm run test",
2829
"lint": "npx eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
29-
"test": "jest"
30+
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
31+
"jest:bruteforce": "BRUTEFORCE=true node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
32+
"jest:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
33+
"prettier": "npx prettier --write 'src/**/*.js'",
34+
"test": "jest",
35+
"update-all": "npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"
3036
}
3137
}

0 commit comments

Comments
 (0)