GithubHelp home page GithubHelp logo

Comments (5)

IlCallo avatar IlCallo commented on June 7, 2024

Hey there, are you sure you followed the upgrade guides while migrating from Cypress AE v4 to latest v5?

Both of these:

This seems a problem due to misconfiguration / poorly upgraded environment, as this problems isn't present into new installations AFAIK

from quasar-testing.

khteh avatar khteh commented on June 7, 2024

Are you able to provide specifics of what I might miss? There are a lot to check.....

from quasar-testing.

IlCallo avatar IlCallo commented on June 7, 2024

I honestly have no idea, have you tried generating a new project with latest Cypress AE and comparing the Cypress configuration files?

from quasar-testing.

khteh avatar khteh commented on June 7, 2024

I made some progress. However, even starting with a fresh new quasar project installing the AE hits the following error:

 $ n test

> [email protected] test
> jest

 FAIL  src/components/__tests__/VModelComponent.cy.ts
  ● Test suite failed to run

    ReferenceError: Cypress is not defined

    > 1 | import { vModelAdapter } from '@quasar/quasar-app-extension-testing-e2e-cypress';
        | ^
      2 | import { ref } from 'vue';
      3 | import VModelComponent from '../VModelComponent.vue';
      4 |

      at setupHooks (node_modules/cypress/vue/dist/cypress-vue.cjs.js:93:5)
      at Object.<anonymous> (node_modules/cypress/vue/dist/cypress-vue.cjs.js:8583:1)
      at Object.<anonymous> (node_modules/@quasar/quasar-app-extension-testing-e2e-cypress/src/helpers/install-quasar-plugin.ts:1:1)
      at Object.<anonymous> (node_modules/@quasar/quasar-app-extension-testing-e2e-cypress/src/helpers/main.ts:3:1)
      at Object.<anonymous> (src/components/__tests__/VModelComponent.cy.ts:1:1)

from quasar-testing.

IlCallo avatar IlCallo commented on June 7, 2024

Are you're running Cypress tests with... Jest?
How did you even manage to do that?

The scaffolding for Jest AE and Cypress AE are optimized to avoid mixing the 2 testing framework

image
As stated by the docs, these are the commands you should use to run Cypress tests

from quasar-testing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.