Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add initial cases * refactor: simplify `isTestCaseCall` & `isDescribeCall` utilities * feat: check that test functions are probably from jest * feat: apply to `isDescribeCall` too * fix: check import refs before unresolved refs * test: add utils cases * fix: begin to support variable imports * test(expect-expect): more tests * test: set correct `ecmaVersion` * chore: clean * chore: clean up code & tests more * feat: support dynamic import properly * fix: make sure that `scopeHasLocalReferences` works properly * test: add extra case for coverage * feat: switch rules over to using scoped jest function checks * fix: remove unneeded condition (apparently?) * fix: adjust code to cover branches * test: only run dynamic import cases when using eslint 8+ * test: ignore coverage on condition that is only tested on eslint v8 * ci: only collect coverage when using eslint versions that support dynamic import * feat: convert `isHook` to `isHookCall` * chore: remove unneeded exporting of util function * refactor(expect-expect): reuse `scope` * refactor: compare against `null` instead of casting to boolean * chore: mark array param as readonly * test: move utils case from specific rule tests into utils tests * refactor: rename variable * test: add some more cases * chore: remove duplicated test case * test: let original error throw if eslint cannot be found * chore: upgrade `@typescript-eslint/types`
- Loading branch information