diff --git a/package.json b/package.json index f7bcf74..1b918bc 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "scripts": { "lint": "standard", "pretest": "npm run lint", - "test": "node --throw-deprecation test.js", + "test": "tap 'test/**/*.test.js' || true", "tap-junit-report": "tap replay -R junit --coverage-report=none --allow-empty-coverage --allow-incomplete-coverage 'test/**/*.test.js' > test-results.xml", "build": "rollup -c", "prepublish": "npm run build", diff --git a/test.js b/test.js deleted file mode 100644 index f53838e..0000000 --- a/test.js +++ /dev/null @@ -1,16 +0,0 @@ -const spawn = require('child_process').spawn -const path = require('path') - -const opt = { - cwd: __dirname, - env: (function () { - process.env.NODE_PATH = './' + path.delimiter + './lib' - return process.env - }()), - stdio: [process.stdin, process.stdout, process.stderr] -} - -spawn('node', [ - 'node_modules/.bin/tap', - process.argv[2] || 'test/**/*.test.js' -], opt)