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

Mocha runner reports killed by: undefined when a hook fails. #2720

Closed
nicojs opened this issue Jan 28, 2021 · 0 comments · Fixed by #2757
Closed

Mocha runner reports killed by: undefined when a hook fails. #2720

nicojs opened this issue Jan 28, 2021 · 0 comments · Fixed by #2757
Labels
🐛 Bug Something isn't working

Comments

@nicojs
Copy link
Member

nicojs commented Jan 28, 2021

Summary

When a before each hook fails, the test that gets reported failed is not actually a test, but the name of the hook.

For example: DirectoryRequireCache "before each" hook for "should clear recorded files" instead of DirectoryRequireCache should clear recorded files

image

Stryker config

{
  "testRunner": "mocha"
}

Stryker environment

+-- @stryker-mutator/core@4.4.0
+-- @stryker-mutator/mocha-runner@4.4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant