Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion node/mock-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class MockTestRunner {
private async getNodePath(nodeVersion?: number): Promise<string> {
const version: number = nodeVersion || this.getNodeVersion();
const versions = {
24: 'v24.0.0',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we previously used the Node.js LTS version, we can continue with the same approach for version 24, which is 24.11.1. Reference: https://nodejs.org/en/blog/release/v24.11.1

20: 'v20.13.1',
16: 'v16.20.2',
10: 'v10.24.1',
Expand All @@ -174,7 +175,7 @@ export class MockTestRunner {

const downloadVersion: string = versions[version];
if (!downloadVersion) {
throw new Error('Invalid node version, must be 6, 10, 16 or 20 (received ' + version + ')');
throw new Error('Invalid node version, must be 6, 10, 16, 20 or 24 (received ' + version + ')');
}

// Install node in home directory if it isn't already there.
Expand Down
Loading