Skip to content

Commit

Permalink
tests: clean up installed express libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jun 27, 2019
1 parent 3009206 commit 6e4ddf2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"devDependencies": {
"istanbul": "0.4.5",
"mocha": "1.21.5",
"rimraf": "2.7.1",
"supertest": "1.1.0"
},
"files": [
Expand Down
7 changes: 7 additions & 0 deletions test/3.x/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var exec = require('child_process').exec
var path = require('path')
var rimraf = require('rimraf')
var utils = require('../support/utils')

suite('express 3.x')
Expand All @@ -18,6 +20,11 @@ before(function (done) {
})
});

after(function (done) {
this.timeout(30000)
rimraf(path.join(__dirname, 'node_modules'), done)
})

require('./app')
require('./async_helpers')
require('./view_engine')
Expand Down
7 changes: 7 additions & 0 deletions test/4.x/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
var exec = require('child_process').exec
var path = require('path')
var rimraf = require('rimraf')
var utils = require('../support/utils')

suite('express 4.x')
Expand All @@ -18,6 +20,11 @@ before(function (done) {
})
});

after(function (done) {
this.timeout(30000)
rimraf(path.join(__dirname, 'node_modules'), done)
})

require('./app')
require('./async_helpers')
require('./view_engine')
Expand Down

0 comments on commit 6e4ddf2

Please sign in to comment.