cypress-io / cypress-io/code-coverage

Class constructor NYC cannot be invoked without 'new'

Open
#804 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
445
Forks
115
PR merge metrics
No merged PRs in 30d

Description

**Logs and screenshots**
![image](https://github.com/cypress-io/code-coverage/assets/196705/0520a6a8-d7fb-49da-905c-7208c52684aa)

**Versions**
@cypress/code-coverage@3.12.32
cypress@13.7.1
nyc@15.1.0
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 `next@14.1.4`

.nyc_output/out.json: `{}`

window.__coverage__
image

`package.json:nyc`
```json
"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](https://github.com/cypress-io/code-coverage/assets/196705/0520a6a8-d7fb-49da-905c-7208c52684aa)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.