Commit Graph

23 Commits

Author SHA1 Message Date
Remy Sharp
97f8d0a175 fix: node_modules watched off relative path (#1328)
* chore: bump chokidar to latest
* test: fix weird output on restart filename
* test: skip old broken test
* fix: node_modules watched off relative path

Fixes #1294
Fixes #1305 (though couldn't confirm - just looks very similar)

I've gone back and forth on this Chokidar option `cwd` and in this fix
I've removed it from the config. I've checked the issues that were
raised that caused me to add the option, and they still appear to pass
in the tests, so I believe it's okay.

However, it _might_ come back in - just a note for Future @remy.
2018-05-05 20:17:21 +01:00
Dominykas Blyžė
b326b4648a test: unlink tmp files after each test 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
c5bf96c051 test: always wait for nodemon.reset() to complete in teardown 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
70a2ec7f3d test: use unlinkSync; validate file exists before unlinking
Sometimes tests fail because the file does not exist (it was possibly not created due to unrelated failure?); Async unlinking might also be causing unnecessary restarts (sometimes test fail with "`done` called twice")
2017-12-20 14:08:53 +00:00
Tim
f711fb7889 test: fork child node processes 2017-12-06 14:45:10 -08:00
Remy Sharp
6d57dac0ee fix: bump deps and fix tests for local dev (#1139)
Upgraded tests for node 8
2017-12-04 14:56:44 +00:00
Remy Sharp
e4412268c4 fix: restart on new files added to watched dir
Fixes #664

Also includes tests and quietens the force crash test (though unchanged).
2015-10-19 12:27:54 +01:00
Remy Sharp
3265e92b62 test: fix bad runOnChangeOnly test 2015-10-19 12:27:54 +01:00
Remy Sharp
7496f08330 fix: incorrectly exiting when required
test: updated travis tests
2015-09-09 22:29:26 +01:00
Chris Khoo
50f5994ee6 change --no-startup to --on-change-only 2015-07-20 18:40:45 -07:00
Chris Khoo
db196733b7 add option --no-startup to not run command on startup 2015-07-05 16:19:11 -07:00
Michael Heuberger
c4e263ed37 expose streams for piping (mh) 2014-06-04 02:49:24 +12:00
Remy Sharp
9b3b5099c7 If nodemon is required, respect SIGINT, and fricking quit already! 2014-01-09 13:10:07 +00:00
Remy Sharp
0945ee92cd merge fixes 2014-01-05 01:47:11 +00:00
Remy Sharp
13770da9f3 Fixed nodemon.once. Add config.run. Tests not 100% passing
Something weird is happening with required nodemon and re-running lots of times, that somehow resets the config. I know it's due to my tests, but I'm unsure which one is actually causing the damn issue. Anyway, bed for me, it's almost 2am. Sod this for a game of cricket.
2014-01-05 01:42:37 +00:00
Remy Sharp
e92d29316f Fixed default ignore rule overriding all 2014-01-02 18:17:26 +00:00
Remy Sharp
ab464021df 78 tests passing on mac. 2013-12-29 20:26:28 +00:00
Remy Sharp
86d32281ce Passing all tests on linux 2013-12-14 20:20:27 +00:00
Remy Sharp
5c7af6bfc4 More tests. 79% code coverage + more docs
- Events documented
- Require working nicely
- If nodemon is required, nodemon message are emitted rather than console.log'ged
2013-12-14 00:57:41 +00:00
Remy Sharp
abc27cd5ca Correct signal passing. Fixes #232.
Also more linting, tweaks to FAQ & contributing and added .jshint file.

Also adds test for signal test (though needs mocha to timeout at 15 seconds!)
2013-12-10 00:06:25 +00:00
Remy Sharp
d092d71775 Ignore .git & node_modules/**/node_modules by default. Closes #230
Also linting, tests and cleaned up filename that's echoed triggering the change
2013-12-05 00:12:24 +00:00
Remy Sharp
9853e089b4 Fixed #118 plus a bunch of jshint fixes 2013-12-04 12:31:37 +00:00
Remy Sharp
c8d59ff466 Removes support for node 0.6 in nodemon 0.9.x and upwards 2013-12-03 23:54:14 +00:00