Skip to content

Commit f1ed51f

Browse files
committed
Update test scripts
- Configured `npm test` to use Jest. - Added script `npm run watch-test` to run Jest in watch mode.
1 parent e3cef33 commit f1ed51f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"start": "electron ./dist/main.bundle.js",
88
"dev": "rimraf dist && cross-env NODE_ENV=development webpack --watch --progress --color",
99
"prod": "rimraf dist && cross-env NODE_ENV=production webpack --progress --color",
10-
"test": "mocha -r ts-node/register -r tsconfig-paths/register \"test/**/*.ts\"",
10+
"test": "cross-env NODE_ENV=test jest",
11+
"watch-test": "npm run test -- --watchAll",
1112
"build:win": "electron-builder build --win --x64",
1213
"build:mac": "electron-builder build --mac --x64"
1314
},

0 commit comments

Comments
 (0)