Skip to content

Commit 66ce9ee

Browse files
committed
chore(test): add property based test for message parsing roundtrip
1 parent 4cb2b50 commit 66ce9ee

File tree

5 files changed

+668
-17
lines changed

5 files changed

+668
-17
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
"scripts": {
1616
"build": "tsc",
17+
"test": "cross-env TS_NODE_PROJECT=\"test/tsconfig.json\" mocha -r ts-node/register test/*.ts",
1718
"format": "prettier --write ./src",
1819
"commit": "ts-node src/index.ts prompt",
1920
"prepare": "npm run build && husky install",
@@ -37,8 +38,12 @@
3738
},
3839
"devDependencies": {
3940
"@types/inquirer": "^7.3.1",
41+
"@types/mocha": "^8.2.1",
4042
"@types/node": "^14.14.32",
43+
"cross-env": "^7.0.3",
44+
"fast-check": "^2.13.0",
4145
"husky": "^5.1.3",
46+
"mocha": "^8.3.2",
4247
"prettier": "^2.2.1",
4348
"ts-node": "^9.1.1",
4449
"typescript": "^4.2.3"

0 commit comments

Comments
 (0)