-
Notifications
You must be signed in to change notification settings - Fork 665
Two independent tests connected via Vuex #1337
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
Comments
V: 1.0.0-beta.29 |
Seems my issue has the same root with #1130 |
thank |
As the linked issue explains, setting I can reproduce this issue without test('Vue-only sync', () => {
let error = null
Vue.config.async = false
Vue.config.errorHandler = e => {
error = e
}
const vm = new Vue({
...ComponentUnderTest,
store: createStore()
}).$mount()
expect(error).toBe(null)
// Failure:
// Expected: null
// Received: [TypeError: Cannot read property '$scopedSlots' of undefined]
}) So the bug clearly lies somewhere in Vue.js' sync behaviour. But as @eddyerburgh mentioned in the linked issue, sync behaviour is going away in both Vue and |
@vvanpo , thx for example. I think this issue is not actual any more. |
Version
1.0.0-beta.29
Reproduction link
https://github.com/AlexanderShushunov/test-vuex-error
Steps to reproduce
There are two test in repo. They just mount ComponentUnderTest.
For each tests I created a vuex-store.
ComponentUnderTest has a tamplate
Init
component hascreated
hook, which mutateflag
.Run test (
npm run test
)What is expected?
There are no errors
What is actually happening?
Errors can be different. It depends on template.
If I delete one test, another will pass.
If I replace
created
hook formounted
inInit
tests will pass.I do not use
flag
inv-if
tests will pass.The text was updated successfully, but these errors were encountered: