Skip to content

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

@AlexanderTheGrey

Description

@AlexanderTheGrey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions