From ce9fd9bdca0caa6a33ce37a01f41593ca42ba95b Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 2 Apr 2018 22:44:25 +1000 Subject: Start moving test suite from tape => jest --- package.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 7f645e2..54883c4 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "main": "src/fengari.js", "directories": { "lib": "src", - "test": "tests" + "test": "test" }, "scripts": { - "lint": "eslint src/ tests/", + "lint": "eslint src/ test/", "prepublishOnly": "git diff-index --quiet --cached HEAD -- && npm run lint && npm run test", - "test": "tape tests/*.js tests/test-suite/*.js | faucet" + "test": "jest && (tape test/test-suite/*.js | faucet)" }, "repository": { "type": "git", @@ -32,6 +32,7 @@ "devDependencies": { "eslint": "^4.19.1", "faucet": "^0.0.1", + "jest": "^22.4.3", "tape": "^4.9.0" }, "dependencies": { @@ -78,6 +79,16 @@ "error", "always" ] - } + }, + "overrides": [ + { + "files": [ + "test/**/*.test.js" + ], + "env": { + "jest": true + } + } + ] } } -- cgit v1.2.3-70-g09d2