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

jest-circus issues confusing error message if attempting to nest test calls #9825

Closed
runeh opened this issue Apr 16, 2020 · 1 comment · Fixed by #9828
Closed

jest-circus issues confusing error message if attempting to nest test calls #9825

runeh opened this issue Apr 16, 2020 · 1 comment · Fixed by #9828

Comments

@runeh
Copy link

runeh commented Apr 16, 2020

🐛 Bug Report

jest-circus issues confusing error message if attempting to nest test calls.

Note, this only triggers when the tests are nested within a describe. See #9824

To Reproduce

Nest one test() inside of another. The tests must be enclosed in a describe

See https://github.com/runeh/jest-circus-nested-it-repro/blob/master/index.testcase2.test.js

Expected behavior

Tests should not run, and a warning about illegal nesting should be shown.

The actual warning is Status should be present after tests are run.

Link to repl or repo (highly encouraged)

https://github.com/runeh/jest-circus-nested-it-repro

envinfo

  System:
    OS: macOS 10.15.4
    CPU: (4) x64 Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
  Binaries:
    Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
    Yarn: 1.22.4 - ~/.nvm/versions/node/v12.16.1/bin/yarn
    npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
  npmPackages:
    jest: ^25.3.0 => 25.3.0
@runeh runeh changed the title est-circus issues confusing error message if attempting to nest test calls jest-circus issues confusing error message if attempting to nest test calls Apr 16, 2020
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants