Closed mspoulsen closed 4 years ago
Hi, thanks for your report. Would you please reduce your issue to a small reproducible example (e.g. a GitHub repository together with instructions on how to get to the problem)? Without a runnable example it would be difficult for us to find out what is going wrong.
Unfortunately that is not possible. It is a very big (and private) project.
But the codebase is typescript, the cypress test files are javascript.
Maybe you can explain me why I need the cli-plugin-e2e-cypress in the first place? What is the difference from setting up Cypress on my own? What does it do? I find that very hard to figure out.
I am basically looking for a setup where:
Is that setup possible? From what I have seen headless + typescript seems not to be possible atm?
Maybe you can explain me why I need the cli-plugin-e2e-cypress in the first place? What is the difference from setting up Cypress on my own? What does it do?
Of course, you can set up Cypress on your own.
See the codebase here: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-e2e-cypress
Most of the code resides in the template
folder, meaning they are only used for scaffolding purposes. Nothing more.
The rest are:
index.js
which provides a test:e2e
command as a wrapper for users to use instead of calling the cypress
command directly. The implementation is quite straightforward. It also starts a server for users if they don't provide one.ui.js
for users of Vue CLI UI to run the task from the UI.Also, see the commit history here: https://github.com/vuejs/vue-cli/commits/dev/packages/%40vue/cli-plugin-e2e-cypress Almost nothing has changed since v3.2. So your problem is not likely to be caused by the upgrade of the cypress plugin.
Another thing that may need notice is that in v3.2, we changed the default template to comment out the preprocessor
block because it's very buggy (it was added in v3.1 to support aliases etc.). https://github.com/vuejs/vue-cli/pull/2904/files#diff-1c4d741ece51a603d9d28f55c9d1e306
So if your project still contains that piece of code, try to remove it and see if it works.
Ok, thanks a lot. I just like as few dependencies as possible. Maybe it is @vue/cli-service. I only upgraded 5 dependencies - nothing else. I will keep investigating.
I know that there are problems running Cypress headlessly if typescript is in the mix but I will raise that question on cypress.io.
Thanks again for swift reply :)
Hello! This issue has gone quiet. Spooky quiet. 👻
We get a lot of issues, so we currently close issues requiring feedback after 20 days of inactivity. It’s been at least 10 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. (A maintainer can also add the label not stale
to keep this issue open.)
Thanks for being a part of the Vue community! 💪💚️
Hey again! 😸️
It’s been 20 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it.
Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY
. 🤖 Please feel free to reopen this issue or create a new one if you need anything else.
Thanks again for being part of the Vue community! 💚️
Version
4.0.5
Environment info
Steps to reproduce
I am in the process of upgrading from Vue Cli 3.11 to 4.05. All my (jest) unit tests and cypress e2e tests are passing before I begin. These are the steps that I take and what happens at each step:
What is expected?
I expect things to just work when I run vue upgrade?
What is actually happening?
Things break. I am able to fix my unit tests by upgrading jest manually but I have not yet found a way to fix my e2e tests.