Skip to content

Tests cannot be nested, jest complaninig locally #22

@muzhaqi16

Description

@muzhaqi16

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions