Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mildfuzz opened this issue Mar 27, 2024 · 1 comment
Open

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

mildfuzz opened this issue Mar 27, 2024 · 1 comment

Comments

@mildfuzz
Copy link

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

@mildfuzz
Copy link
Author

mildfuzz commented Apr 4, 2024

It was suggested that updating tsconfig to target es6 would do it
https://stackoverflow.com/questions/76240165/error-class-constructor-t-cannot-be-invoked-without-new-in-nestjs-with-prisma

But this was unsuccessful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant