use --watchAll flag

This commit is contained in:
Nebel 2022-07-22 19:01:44 +09:00
parent d26e0f2a2f
commit a574f1d844
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ Jestを使ってどうやってテストするのかといった疑問に答
テストを行っていくための最初の一歩になればと思います。
<iframe
src="https://stackblitz.com/github/kou029w/jest-hands-on/tree/main/templates/template?embed=1&view=editor&terminal=test&file=sum.js,sum.test.js"
src="https://stackblitz.com/github/kou029w/jest-hands-on/tree/main/templates/template?embed=1&view=editor&terminal=watch&file=sum.js,sum.test.js"
style="
width: 100%;
height: 640px;

View file

@ -5,7 +5,8 @@
"main": "main.js",
"type": "module",
"scripts": {
"test": "jest"
"test": "jest",
"watch": "jest --watchAll"
},
"devDependencies": {
"@babel/preset-env": "^7.18.9",