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 allows nested it calls #9824

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

jest-circus allows nested it calls #9824

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 allows nested test calls.

To Reproduce

Nest one test() inside of another. See https://github.com/runeh/jest-circus-nested-it-repro/blob/master/index.testcase1.test.js

Expected behavior

Tests should not run, and a warning should be shown.

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
@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