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

Tests cannot be nested, jest complaninig locally #22

Open
muzhaqi16 opened this issue May 16, 2022 · 0 comments
Open

Tests cannot be nested, jest complaninig locally #22

muzhaqi16 opened this issue May 16, 2022 · 0 comments

Comments

@muzhaqi16
Copy link

muzhaqi16 commented May 16, 2022

test.skip("findMostCommonTitle", function () {

I do receive this error message when trying to run the tests locally.

FAIL specs/graph/graph.test.js
● extra credit

 Tests cannot be nested. Test "user 1 with 7 degrees of separation – this will traverse every user that's followed by someone else. five users are unfollowed" cannot run because it is nested within "extra credit".

  73 |
  74 | test("extra credit", function () {
> 75 |   test("user 1 with 7 degrees of separation – this will traverse every user that's followed by someone else. five users are unfollowed", () => {
     |   ^
  76 |     expect(findMostCommonTitle(1, 7)).toBe("Geological Engineer");
  77 |   });
  78 | });

  at Env.it (node_modules/jest-jasmine2/build/jasmine/Env.js:605:19)
  at Object.<anonymous> (specs/graph/graph.test.js:75:3)`

I had to change the outer test to describe

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