Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Merge 755d192 into 5c9c0fa
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 22, 2017
2 parents 5c9c0fa + 755d192 commit cc9fa5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"preversion": "npm t",
"postversion": "npm publish && git push --follow-tags",
"pretest": "standard lib test *.js",
"test": "nyc -- tap test/*.js",
"test": "nyc -- tap -J test/*.js",
"update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'",
"update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'"
},
Expand Down Expand Up @@ -59,7 +59,7 @@
"nyc": "^10.0.0",
"rimraf": "^2.5.4",
"standard": "^8.6.0",
"tap": "^8.0.1",
"tap": "^10.2.0",
"weallbehave": "^1.0.0",
"weallcontribute": "^1.0.7"
}
Expand Down
5 changes: 3 additions & 2 deletions test/util/test-dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ var cacheDir = path.resolve(__dirname, '../cache')

module.exports = testDir
function testDir (filename) {
var dir = path.join(cacheDir, path.basename(filename, '.js'))
var base = path.basename(filename, '.js')
var dir = path.join(cacheDir, base)
reset(dir)
if (!process.env.KEEPCACHE) {
tap.tearDown(function () {
process.chdir(__dirname)
try {
rimraf.sync(cacheDir)
rimraf.sync(dir)
} catch (e) {
if (process.platform !== 'win32') {
throw e
Expand Down

0 comments on commit cc9fa5f

Please sign in to comment.