cypress-io / cypress-vue-unit-test

A little helper to unit test Vue components in the Cypress.io E2E test runner
295 stars 23 forks source link

Thrown Error denies any Component Tests that use mount or unmount #316

Closed AndrePruessingDFB closed 4 years ago

AndrePruessingDFB commented 4 years ago

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.

Is this a bug report or a feature request?

Bug or missing Feature If this is a bug report, please provide as much info as possible

inside the index.js u can find the following code snippet (line 11 ff): function checkMountModeEnabled() { // @ts-ignore if (Cypress.spec.specType !== 'component') { throw new Error(In order to use mount or unmount functions please place the spec in component folder); } } specType is never set and there is no Documentation for it so each time u use mount or unmout with vue-cli-service test:components ur test fails. There should be at least some kind of documentation or a fix of that

AndrePruessingDFB commented 4 years ago

needed to update cypress then everything is fine.