Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support @jest/globals #1094

Merged
merged 31 commits into from May 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7cf8ba0
test: add initial cases
G-Rath Apr 24, 2022
e0f2da1
refactor: simplify `isTestCaseCall` & `isDescribeCall` utilities
G-Rath Oct 12, 2021
00dc0a3
feat: check that test functions are probably from jest
G-Rath Apr 25, 2022
849c1bf
feat: apply to `isDescribeCall` too
G-Rath Apr 27, 2022
a0c2910
fix: check import refs before unresolved refs
G-Rath Apr 27, 2022
089307f
test: add utils cases
G-Rath Apr 27, 2022
c6ee8cd
fix: begin to support variable imports
G-Rath Apr 28, 2022
cdfb2ce
test(expect-expect): more tests
G-Rath Apr 28, 2022
f082eb3
test: set correct `ecmaVersion`
G-Rath Apr 28, 2022
42a7c95
chore: clean
G-Rath Apr 28, 2022
000dc5a
chore: clean up code & tests more
G-Rath Apr 28, 2022
b0b5120
feat: support dynamic import properly
G-Rath Apr 29, 2022
b513f00
fix: make sure that `scopeHasLocalReferences` works properly
G-Rath Apr 29, 2022
aedb618
test: add extra case for coverage
G-Rath Apr 29, 2022
126a64b
feat: switch rules over to using scoped jest function checks
G-Rath Apr 29, 2022
280786c
fix: remove unneeded condition (apparently?)
G-Rath Apr 30, 2022
518f282
fix: adjust code to cover branches
G-Rath Apr 30, 2022
3b1a024
test: only run dynamic import cases when using eslint 8+
G-Rath Apr 30, 2022
b80a40b
test: ignore coverage on condition that is only tested on eslint v8
G-Rath Apr 30, 2022
e118101
ci: only collect coverage when using eslint versions that support dyn…
G-Rath Apr 30, 2022
23f5365
feat: convert `isHook` to `isHookCall`
G-Rath Apr 30, 2022
6791de6
chore: remove unneeded exporting of util function
G-Rath Apr 30, 2022
4fc6a57
refactor(expect-expect): reuse `scope`
G-Rath May 1, 2022
f85b0d9
refactor: compare against `null` instead of casting to boolean
G-Rath May 1, 2022
68b9760
chore: mark array param as readonly
G-Rath May 1, 2022
556edc3
test: move utils case from specific rule tests into utils tests
G-Rath May 1, 2022
f13ba6b
refactor: rename variable
G-Rath May 1, 2022
c0ef8e5
test: add some more cases
G-Rath May 1, 2022
8a06778
chore: remove duplicated test case
G-Rath May 1, 2022
8660f44
test: let original error throw if eslint cannot be found
G-Rath May 3, 2022
c832563
chore: upgrade `@typescript-eslint/types`
G-Rath May 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/nodejs.yml
Expand Up @@ -85,11 +85,12 @@ jobs:
yarn
yarn add --dev eslint@${{ matrix.eslint-version }}
- name: run tests
run: yarn test --coverage
# only collect coverage on eslint versions that support dynamic import
run: yarn test --coverage ${{ matrix.eslint-version >= 8 }}
env:
CI: true
- uses: codecov/codecov-action@v3
if: always()
if: ${{ matrix.eslint-version >= 8 }}
test-os:
name: Test on ${{ matrix.os }} using Node.js LTS
needs: prepare-yarn-cache
Expand All @@ -108,11 +109,12 @@ jobs:
- name: install
run: yarn
- name: run tests
run: yarn test --coverage
# only collect coverage on eslint versions that support dynamic import
run: yarn test --coverage ${{ matrix.eslint-version >= 8 }}
env:
CI: true
- uses: codecov/codecov-action@v3
if: always()
if: ${{ matrix.eslint-version >= 8 }}

docs:
if: ${{ github.event_name == 'pull_request' }}
Expand Down