btholt / btholt/algorithms-exercises
Tests cannot be nested, jest complaninig locally
- Dominant language
- JavaScript
- Stars
- 253
- Forks
- 834
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/btholt/algorithms-exercises/blob/5b2edb0bc08e033d552ea7f9c891d02b49863aa0/specs/graph/graph.test.js#L34
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. (specs/graph/graph.test.js:75:3)`
I had to change the outer `test` to `describe`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.