question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli-plugin-e2e-cypress test throws exception after tests succeed at the end - TypeError: server.stop is not a function

See original GitHub issue

Version

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:open
  • Created a year ago
  • Comments:13

github_iconTop GitHub Comments

3reactions
MorSofcommented, Sep 18, 2022

+1 Any updates on this?

3reactions
wilcodecommented, Aug 4, 2022

same issue with cypress v10.3.1

+1, this is blocking my project upgrading to the latest Cypress version.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found