We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d0e7f commit b379253Copy full SHA for b379253
.gitignore
@@ -7,4 +7,3 @@ tickets.json
7
**.swp
8
.v8flags.*
9
*.txt
10
-yo.js
package.json
@@ -9,7 +9,8 @@
},
"devDependencies": {
11
"chai": "^3.5.0",
12
- "mocha": "^3.2.0"
+ "mocha": "^3.2.0",
13
+ "tmp": "0.0.31"
14
15
"scripts": {
16
"test": "node_modules/.bin/mocha",
test/reloader_test.js
@@ -1,8 +1,9 @@
1
const reloader = require('../reloader')
2
const assert = require('assert')
3
const fs = require('fs')
4
+const tmp = require('tmp');
5
-const TEST_FILE = './yo.js'
6
+const TEST_FILE = tmp.fileSync().name
describe("reload reloads", function() {
it("reloads if file is updated", function() {
0 commit comments