-
Notifications
You must be signed in to change notification settings - Fork 527
feat(cli): upgrade Node.js environment to version 22 #2033
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 18 | ||
| 22 |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,7 @@ jest.mock('cbor') | |||||
| jest.mock('../../utils/logWrapper') | ||||||
|
|
||||||
| // Mock process.exit | ||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: number) => { | ||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | ||||||
|
||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | |
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: Parameters<typeof process.exit>[0]) => { |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,7 +14,7 @@ import { expect, jest } from '@jest/globals' | |||||
| jest.mock('../../utils/logWrapper', () => ({ | ||||||
| fail: jest.fn(), | ||||||
| })) | ||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: number) => { | ||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | ||||||
|
||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | |
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: Parameters<typeof process.exit>[0]) => { |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,7 +9,7 @@ jest.mock('../../utils/logWrapper', () => ({ | |||||
| fail: jest.fn(), | ||||||
| })) | ||||||
|
|
||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: number) => { | ||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | ||||||
|
||||||
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: string | number | null) => { | |
| const mockExit = jest.spyOn(process, 'exit').mockImplementation((code?: Parameters<typeof process.exit>[0]) => { |
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
process.exitmock uses a manually specified union type forcode. To reduce maintenance when Node/@types change, derive thecodeparameter type fromprocess.exitinstead of hard-coding it.