Skip to content

Commit 543ace0

Browse files
committed
test(jest): set up Jest and add test/coverage scripts
1 parent 9263fcc commit 543ace0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
},
88
"type": "module",
99
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1",
10+
"test": "jest --passWithNoTests",
11+
"test:watch": "jest --watch",
12+
"test:coverage": "jest --coverage",
13+
"test:watch:coverage": "jest --watch --coverage",
1114
"lint": "eslint . --fix",
1215
"format": "prettier --write . \"**/*.{js,json,cjs,mjs,md,html,yml}\"",
1316
"start": "node src/cli.js"

0 commit comments

Comments
 (0)