Commit 84d7a68
authored
feat: support
* 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`@jest/globals (#1094)1 parent 48e994f commit 84d7a68
File tree
29 files changed
+1146
-238
lines changed- .github/workflows
- src/rules
- __tests__
29 files changed
+1146
-238
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | | - | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments