Tests cannot be nested, jest complaninig locally
Opened this issue · 0 comments
muzhaqi16 commented
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