Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexandershushunov/test-vuex-error
Example of bug with vuex and vue-test-utils
https://github.com/alexandershushunov/test-vuex-error
Last synced: about 1 month ago
JSON representation
Example of bug with vuex and vue-test-utils
- Host: GitHub
- URL: https://github.com/alexandershushunov/test-vuex-error
- Owner: AlexanderShushunov
- Created: 2019-10-30T16:54:50.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:49:31.000Z (about 2 years ago)
- Last Synced: 2024-04-23T20:26:33.581Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.59 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# test-vuex-error
## Project setup
```
npm install
```### Run tests
```
npm run test
```After test running you get an error.
If one test is deleted in ComponentUnderTest.spec.js test will pass.
If `created` hook is replaced to `mounted` in Init.vue tests will pass.
Adding options `sync: false` also fixes the problem.
Issue in https://github.com/vuejs/vue-test-utils/issues/1337
----
The bug lies somewhere in Vue.js' sync behaviour.
See `without-test-utils` branch. It does not use `vue-test-utils`,
but the same error is occured.