cypress with vue3 => Cannot access 'testStore' before initialization #27854
Unanswered
devSeb
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My configuration
My cypress configuration file ( cypress.config.js)
I would like de test à store contains many imports but to reproduce the problem, my test file contains main.js mains.js contains configuration of vue ( store, router, components, etc ... )
my test file
To just to reproduce the problem
if I comment my line import {router}, I don't have a problem
if i don't commentmy line import {router} the terminal show many Get on all files imported and I have this error on the client cypress
A solution for the problem to import router or store in the test file ? A specific configuration in vite.config.js or other ?
Thanks for help
idea
When i used test-util 1 with vue2 I used this but now we can't because createLocalVue is not available in test-utils for vue3 This old test worked perfectly with multiple import
Beta Was this translation helpful? Give feedback.
All reactions