From c6f1011722dc6fe50afb3a63ee414c70dbfd6abf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 27 Mar 2023 12:47:04 -0300 Subject: data steps: basic custom mocking function support I checked out a few libraries but none really behaved the way I needed, and coding it myself means much lower- level access, which makes certain options a lot easier (e.g. excluding one argument of a mocked function from assertion while matching the rest against a pattern). --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7f8e32e..9d9a2cf 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "hsmusic": "./src/upd8.js" }, "scripts": { - "test": "tap test/snapshot/*.js test/unit/**/*.js", + "test": "tap 'test/snapshot/*.js' 'test/unit/**/*.js'", "dev": "eslint src && node src/upd8.js" }, "dependencies": { @@ -22,7 +22,8 @@ "devDependencies": { "chokidar": "^3.5.3", "eslint": "^8.18.0", - "tap": "^16.3.4" + "tap": "^16.3.4", + "tcompare": "^6.0.0" }, "tap": { "coverage": false, -- cgit 1.3.0-6-gf8a5