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

runner.on is not a function #201

Open
aorlowskiddm opened this issue Jan 30, 2024 · 0 comments
Open

runner.on is not a function #201

aorlowskiddm opened this issue Jan 30, 2024 · 0 comments

Comments

@aorlowskiddm
Copy link

aorlowskiddm commented Jan 30, 2024

I am trying to use mocha-junit-reporter in combination with nyc and ts-mocha.

In package.json I have this excerpt:

  "scripts": {
    "test-ts": "ts-mocha \"./test/**/*.test.ts\"",
    "nyc": "nyc --check-coverage --all --lines 50  --functions 50 --branches 50 --reporter=html --reporter=text --reporter=mocha-junit-reporter npm run test-ts"
  },

After nyc finishes executing and all tests pass, I just see this, and no report is generated:

image

Perhaps mocha-junit-reporter is incompatible with ts-mocha? What is the suggested approach?

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