Skip to content

Commit 924926f

Browse files
author
Gonzalo Diaz
committed
[CONFIG] NPM and Makefile: jest clean action added.
1 parent d373602 commit 924926f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ env:
4444
@echo "################################################################################"
4545

4646
clean:
47+
npm run jest:clean
4748
rm -vfr ./node_modules
4849
rm -vfr ./coverage
4950
mkdir -p ./coverage
@@ -65,7 +66,7 @@ test/static: dependencies
6566
npm run lint
6667

6768
test: env dependencies test/static
68-
npm run test
69+
npm run jest:ci
6970

7071
coverage: test
7172

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"start": "npm run test",
88
"lint": "npx eslint . --color --max-warnings=0 && echo '✔ Your code looks good.'",
99
"lint:watch": "npx esw . --color --max-warnings=0 --watch",
10-
"jest": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
10+
"jest:ci": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
11+
"jest:clean": "jest --clearCache && watchman watch-del-all",
1112
"jest:bruteforce": "BRUTEFORCE=true node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug",
1213
"jest:watch": "node --experimental-vm-modules ./node_modules/.bin/jest --no-cache --ci --color --detectOpenHandles --forceExit --runInBand --debug --watchAll",
1314
"prettier": "npx prettier --write 'src/**/*.js'",
14-
"test": "npm run jest",
15+
"test": "jest",
1516
"test:all": "npm run lint && npm run jest && echo 'Done.'",
1617
"test:watch": "concurrently -k -s first --names \"LINT,TEST\" -p \"[{name}]\" \"npm run lint:watch\" \"npm run jest:watch\"",
1718
"update-all": "npm install $(npm outdated | cut -d' ' -f 1 | sed '1d' | xargs -I '$' echo '$@latest' | xargs echo)"

0 commit comments

Comments
 (0)