Version
3.0.1
Reproduction link
https://github.com/EricRohlfs/vue-cli-unit-debug-issue/
Node and OS info
Node 8.11, NPM 5.6, Vue3.0.1, Windows 10, Jest
Steps to reproduce
- Create a new project or just clone this repo and skip to step 5
-
Choose manual config and add unit tests and choose Jest as the runner.
-
add debugger statement in the HelloWorld.js test file.
-
Run the current test to see if it works - it should
node --inspect-brk ./node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit
-
Add a new unit test in the tests/unit folder. (I just copied the existing test and changed a few strings)
-
Run the tests again using
node --inspect-brk ./node_modules/@vue/cli-service/bin/vue-cli-service.js test:unit
Now the debugger does not stop on the debugger statements.
What is expected?
Debugger statements work when debugging unit tests.
What is actually happening?
Debugger statements are passed over in unit tests.