mochapack: [Bug] Not able to get --watch to work in examples/debug-webpack4 (or my own project)
- [ x ] I’d be willing to submit the fix (if I knew how to fix it…)
Describe the bug
I recently tried to switch over a code-base that was using mocha-webpack
to use mochapack
. I noticed --watch
stopped working when I made the switch. In order to double check that the problem wasn’t our usage, I cloned the mochapack
repo and ran the test loop…all tests passed (including the watch test)…
However, I then opened up the examples/debug-webpack4
folder and ran the test loop in watch mode. Making changes to the index.test.js
file did not cause the test loop to re-run.
Now maybe the example just hasn’t been updated to account for some change, or maybe there is an actual bug - I’m not really sure.
To Reproduce
- checkout
master
(git sha 7d0cbaff91b4f0b91b3e27afb342a92bea567df3 at time of filing) - Run
cd examples/debug-webpack4 && npm i && npm run test:watch
- Observe that test loop runs successfully and waits
- Open up the file
examples/debug-webpack4/src/__tests__/index.test.js
and make a change to it - Observe that the test loop DOES NOT re-run.
Environment if relevant (please complete the following information):
- OS: OSX 10.14.16
- Node version: 11.9.0
- Mochapack version: git sha 7d0cbaff91b4f0b91b3e27afb342a92bea567df3 (master at time of filing
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (10 by maintainers)
Fascinating, looks like you were a major version ahead. I pulled down your updates and indeed everything works as it should!
Sorry to have overlooked the
yarn
thing…I forgot that I could have totally different dependencies since I was runningnpm i
.Thanks again for being so responsive during this whole process. Now I can transition us from
mocha-webpack
tomochapack
, and we’ll have a little more following for this library.