cli-plugin-e2e-cypress test throws exception after tests succeed at the end - TypeError: server.stop is not a function
See original GitHub issueVersion
5.0.8
Environment info
macOS 10.15.7
Steps to reproduce
I tried on Cypress 9.5.1 and 10.3.0. After my tests succeed, the server attempts to close, but the cli-plugin-e2e-cypress fails to close the server:
@vue/cli-plugin-e2e-cypress/index.js:49
runner.on('exit', () => server.stop())
^
TypeError: server.stop is not a function
at ChildProcess.<anonymous> (node_modules/@vue/cli-plugin-e2e-cypress/index.js:49:38)
at ChildProcess.emit (node:events:538:35)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
What is expected?
The server should close properly.
What is actually happening?
cli-plugin-e2e-cypress is claiming that there is no stop() function on the server.
Issue Analytics
- State:
- Created a year ago
- Comments:13
Top Results From Across the Web
'app.address is not a function' when testing an express HTTPS ...
js file and I run node app.js , then the app starts fine, although the test produces the same error. test_node/app.js var https...
Read more >Control flow and error handling - JavaScript - MDN Web Docs
If any statement within the try block (or in a function called from within the try block) throws an exception, control immediately shifts...
Read more >Error handling in Node.js - LogRocket Blog
Deliver reliable software by learning how to handle errors in Node.js using callbacks, promises, and event emitters.
Read more >JUnit Test Exception Examples - How to assert an exception is ...
Java code examples for testing exceptions with JUnit. ... Suppose that we want to test the exception thrown by the setName() method in...
Read more >A Comprehensive Guide To Error Handling In Node.js
parse() method throws an error if its string argument is not a valid JSON object. function parseJSON(data) { return JSON.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 Any updates on this?
+1, this is blocking my project upgrading to the latest Cypress version.