Skip to content

Commit

Permalink
Fix tests on Node 20.8.0+ (#603)
Browse files Browse the repository at this point in the history
* Switch back to latest Node 20

Signed-off-by: Chad Wilson <[email protected]>

* Correct tests with Node 20.8.0+

Switch to mock-tmp which avoids attempting to mock the node `fs` package, which is increasingly difficult, and instead just creates
a dummy file structure in temp directories.

Signed-off-by: Chad Wilson <[email protected]>

* Bump chai and transitive dependencies

Signed-off-by: Chad Wilson <[email protected]>

* Bump version to 4.0.1

Signed-off-by: Chad Wilson <[email protected]>

---------

Signed-off-by: Chad Wilson <[email protected]>
  • Loading branch information
chadlwilson authored Jan 16, 2024
1 parent 636c318 commit 6de0a63
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 486 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 20.7.0
node-version: 20

- name: Setup submodule
run: |
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 20.7.0
node-version: 20

- name: Setup java
uses: actions/setup-java@v4
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.7.0
node-version: 20

- name: Set up Go
uses: actions/setup-go@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Nodejs
uses: actions/setup-node@v4
with:
node-version: 20.7.0
node-version: 20

- name: Setup git
run: |
Expand Down
2 changes: 1 addition & 1 deletion js.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"--init"
]
},
"version": "4.0.0",
"version": "4.0.1",
"gaugeVersionSupport": {
"minimum": "1.0.7",
"maximum": ""
Expand Down
Loading

0 comments on commit 6de0a63

Please sign in to comment.