Skip to content

Commit 3626cc1

Browse files
build(deps-dev): bump @types/node from 22.15.30 to 24.0.3 (#666)
* build(deps-dev): bump @types/node from 22.15.30 to 24.0.3 Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.15.30 to 24.0.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-version: 24.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * test(utils): fix types --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark <mark@remarkablemark.org>
1 parent fc5b593 commit 3626cc1

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

package-lock.json

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@eslint/eslintrc": "3.3.1",
2828
"@eslint/js": "9.29.0",
2929
"@types/jest": "29.5.14",
30-
"@types/node": "22.15.30",
30+
"@types/node": "24.0.3",
3131
"@vercel/ncc": "0.38.3",
3232
"eslint": "9.29.0",
3333
"eslint-plugin-prettier": "5.5.0",

src/utils.test.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ import { getBinaryPath, getDownloadObject } from './utils';
55
jest.mock('os');
66
const mockedOs = jest.mocked(os);
77

8-
const platforms = ['darwin', 'linux', 'win32'] as const;
9-
const architectures = ['arm', 'x32', 'x64'] as const;
8+
const platforms: NodeJS.Platform[] = ['darwin', 'linux', 'win32'];
9+
const architectures = ['arm', 'x32', 'x64'] as NodeJS.Architecture[];
1010

1111
const table = platforms.reduce(
1212
(testSuites, os) => [
1313
...testSuites,
14-
...architectures.map((arch) => [os, arch] as [string, string]),
14+
...architectures.map(
15+
(arch) => [os, arch] as [NodeJS.Platform, NodeJS.Architecture],
16+
),
1517
],
16-
[] as [string, string][],
18+
[] as [NodeJS.Platform, NodeJS.Architecture][],
1719
);
1820

1921
describe('getDownloadObject', () => {
@@ -22,7 +24,7 @@ describe('getDownloadObject', () => {
2224

2325
beforeEach(() => {
2426
jest.resetAllMocks();
25-
mockedOs.platform.mockReturnValueOnce(os as NodeJS.Platform);
27+
mockedOs.platform.mockReturnValueOnce(os);
2628
mockedOs.arch.mockReturnValueOnce(arch);
2729
});
2830

0 commit comments

Comments
 (0)