Skip to content

Class constructor NYC cannot be invoked without 'new' #804

Open
@mildfuzz

Description

@mildfuzz

Logs and screenshots
image

Versions
@cypress/[email protected]
[email protected]
[email protected]
zsh 5.9 (x86_64-apple-darwin23.0)
MacOS 14.4
node v20.11.1
NPM 10.4.0

Instrumented using swc-plugin-coverage-instrument in [email protected]

.nyc_output/out.json: {}

window.coverage
image

package.json:nyc

"nyc": {
    "branch": 100,
    "lines": 1,
    "perFile": true,
    "checkCoverage": true,
    "eager": true,
    "excludeAfterRemap": true,
    "reporter": [
      "text",
      "lcov"
    ],
    "include": [
      "**/pdfs/*"
    ],
    "exclude": [
      "src/db",
      "**/*.spec.js",
      "coverage"
    ],
    "instrumenter": "nyc",
    "sourceMap": false
  },

Describe the bug
Only a single test will run at a time, with the error
image

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