Skip to content

Instantly share code, notes, and snippets.

@goldbergyoni
Last active December 23, 2018 11:02
Show Gist options
  • Select an option

  • Save goldbergyoni/6c23d92d5d506ce5161ff4905f16af47 to your computer and use it in GitHub Desktop.

Select an option

Save goldbergyoni/6c23d92d5d506ce5161ff4905f16af47 to your computer and use it in GitHub Desktop.
Typical test linting findings
describe("Too short description", () => {
const userToken = userService.getDefaultToken() // *error:no-setup-in-describe, use hooks (sparingly) instead
it("Some description", () => {});//* error: valid-test-description. Must include the word "Should" + at least 5 words
});
it.skip("Test name", () => {// *error:no-skipped-tests, error:error:no-global-tests. Put tests only under describe or suite
expect("somevalue"); // error:no-assert
});
it("Test name", () => {*//error:no-identical-title. Assign unique titles to tests
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment