astridx/maplibre-gl-directions

jest eslint

Opened this issue · 0 comments

Rules

Rule Description No/Yes PR
consistent-test-it Have control over test and it usages No
expect-expect Enforce assertion to be made in a test body ?
max-nested-describe Enforces a maximum depth to nested describe calls No
no-alias-methods Disallow alias methods ? maplibre/maplibre-gl-js#614
no-commented-out-tests Disallow commented out tests ? maplibre/maplibre-gl-js#613
no-conditional-expect Prevent calling expect conditionally
no-deprecated-functions Disallow use of deprecated functions
no-disabled-tests Disallow disabled tests x https://github.com/maplibre/maplibre-gl-js/pull/580/files#
no-done-callback Avoid using a callback in asynchronous tests and hooks
no-duplicate-hooks Disallow duplicate setup and teardown hooks
no-export Disallow using exports in files containing tests
no-focused-tests Disallow focused tests x https://github.com/maplibre/maplibre-gl-js/pull/580/files#
no-hooks Disallow setup and teardown hooks
no-identical-title Disallow identical titles
no-if Disallow conditional logic
no-interpolation-in-snapshots Disallow string interpolation inside snapshots Yes maplibre/maplibre-gl-js@3e8e03e
no-jasmine-globals Disallow Jasmine globals
no-jest-import Disallow importing Jest
no-large-snapshots disallow large snapshots Yes maplibre/maplibre-gl-js@3e8e03e
no-mocks-import Disallow manually importing from __mocks__
no-restricted-matchers Disallow specific matchers & modifiers
no-standalone-expect Disallow using expect outside of it or test blocks
no-test-prefixes Use .only and .skip over f and x
no-test-return-statement Disallow explicitly returning from tests
prefer-called-with Suggest using toBeCalledWith() or toHaveBeenCalledWith()
prefer-expect-assertions Suggest using expect.assertions() OR expect.hasAssertions() No
prefer-expect-resolves Prefer await expect(...).resolves over expect(await ...) syntax
prefer-hooks-on-top Suggest having hooks before any test cases
prefer-lowercase-title Enforce lowercase test names
prefer-spy-on Suggest using jest.spyOn() ?w
prefer-strict-equal Suggest using toStrictEqual() ?w
prefer-to-be Suggest using toBe() for primitive literals x maplibre/maplibre-gl-js#607
prefer-to-contain Suggest using toContain() ? maplibre/maplibre-gl-js#612
prefer-to-have-length Suggest using toHaveLength() x https://github.com/maplibre/maplibre-gl-js/pull/580/files#
prefer-todo Suggest using test.todo
require-hook Require setup and teardown code to be within a hook
require-to-throw-message Require a message for toThrow() No
require-top-level-describe Require test cases and hooks to be inside a describe block
valid-describe-callback Enforce valid describe() callback
valid-expect Enforce valid expect() usage x https://github.com/maplibre/maplibre-gl-js/pull/580/files#
valid-expect-in-promise Ensure promises that have expectations in their chain are valid
valid-title Enforce valid titles