Tests nested within describe unable to run
See original GitHub issueDo you want to request a feature or report a bug?
Bug
What is the current behavior?
Using this test code,
Test nested within a describe
block, whether using it
or test
does not run, I get this error:
If I add a simple non-nested test to the file, the output changes and that simple test is recognized, but not the nested test in the same file.
If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install
and yarn test
.
What is the expected behavior?
Should allow me to nest test
or it
within describe
Please provide your exact Jest configuration
Version: ^22.4.3
Config:
Run npx envinfo --preset jest
in your project directory and paste the
results here
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top GitHub Comments
describe
cannot be async. Put the asynchronous work you’re doing into thetest
, or in abeforeEach
/beforeAll
@alaboudi Use
test
insidedescribe
: