Skip to content

Commit

Permalink
ci: workaround for jest/globals env issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Oct 14, 2023
1 parent af93b60 commit 1bdf58e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
- 14
- 16
- 18
- 20

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
Expand Down
13 changes: 13 additions & 0 deletions patches/eslint-config-kentcdodds+20.5.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/eslint-config-kentcdodds/jest.js b/node_modules/eslint-config-kentcdodds/jest.js
index bffd2c1..a35bac5 100644
--- a/node_modules/eslint-config-kentcdodds/jest.js
+++ b/node_modules/eslint-config-kentcdodds/jest.js
@@ -30,7 +30,7 @@ try {

module.exports = {
env: {
- 'jest/globals': true,
+ jest: true,
},
plugins: [
'jest',

0 comments on commit 1bdf58e

Please sign in to comment.