diff --git a/.gitignore b/.gitignore index 1d9d24f9..d44cf4bf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ npm-debug.log .idea out .nyc_output -test/tmp +test/**/tmp +test/functional/database \ No newline at end of file diff --git a/package.json b/package.json index aa7173c9..8cddbf79 100644 --- a/package.json +++ b/package.json @@ -5,9 +5,10 @@ "main": "index.js", "scripts": { "lint": "standard", - "pretest": "npm run lint", - "posttest": "npm run coverage", - "test:local": "FORCE_COLOR=true DB=sqlite node bin/index.js --local", + "pretest": "npm run test:cleanup && npm run lint", + "test:cleanup": "rm -rf test/functional/database && rm -rf test/unit/tmp", + "posttest": "npm run test:cleanup && npm run coverage", + "test:local": "npm run test:cleanup && FORCE_COLOR=true DB=sqlite node bin/index.js --local", "test": "nyc npm run test:local", "test:win": "set FORCE_COLOR=true && node bin/index.js --win", "coverage": "nyc report --reporter=text-lcov | coveralls"