-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
behaviour of test:unit --watch
changed?
#1391
Comments
This is fixed also by e17f78c |
SEE EDIT MESSAGE BELOW @yyx990803 the I tried both from the
yarn run v1.7.0
$ vue-cli-service test:unit --watch "@vue/cli-plugin-unit-jest": {
"version": "3.0.0-rc.3",
"resolved": "https://registry.npmjs.org/@vue/cli-plugin-unit-jest/-/cli-plugin-unit-jest-3.0.0-rc.3.tgz",
"integrity": "sha512-A+ktUdIL856YEpeUVYH+sxccJsgNQ4LA9zH7qNr1bN7pTPEBA7xTNWYbySucwYbhIex66fuRxzQ6Az6MK/DEyw==",
"dev": true,
"requires": {
"@vue/cli-shared-utils": "^3.0.0-rc.3",
"babel-jest": "^23.0.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"jest": "^23.1.0",
"jest-serializer-vue": "^1.0.0",
"jest-transform-stub": "^1.0.0",
"vue-jest": "^2.6.0"
}
},
"@vue/cli-service": {
"version": "3.0.0-rc.3",
...
"jest": {
"version": "23.1.0",
... FYI, when I run the EDIT: my bad, it seems to comes from |
what is the solution? |
Old issue, but maybe some lone googler can use this: For me running See https://docs.npmjs.com/cli/run-script
|
Trying to send
|
This worked for me, after 1 day of trying almost everything, this finally worked! EDIT: Funny, I have to have in package.json EDIT2: My bad, |
Yo thanks for reminding me. The error fixed itself when I reinstalled the supported version of jest. I'm happy you found this after 1 day. I tried so many things for 2 days until I found this ridiculously simple solution. I felt like a fool 😭 |
I just added |
Version
3.0.0-beta.11
Reproduction link
https://github.com/doppelreim/vue-test-app/tree/test-watch-behaviour
Steps to reproduce
Install dependencies:
npm install
Run the unit-tests in "watch-mode":
./node_modules/.bin/vue-cli-service test:unit --watch
After they have passed, open "Other.spec.ts" and change something. For example, change the expectation from 8 to 7.
Save the file.
The tests are run again, automatically (because of
--watch
)What is expected?
At least in beta6, only the tests contained in the file that changed are run again.
What is actually happening?
In beta12, all tests are run again.
I'm not sure, what the actually intended behaviour is. Maybe it should always have been like this. But it is different :)
The text was updated successfully, but these errors were encountered: