Skip to content

Commit d148d83

Browse files
Copilotrubensworks
andauthored
Update typescript from ~5.9.0 to ~6.0.0 (#164)
Agent-Logs-Url: https://github.com/LinkedSoftwareDependencies/Components.js/sessions/3a1755d4-cde4-46b9-888f-a2c602d2fd9a Co-authored-by: rubensworks <440384+rubensworks@users.noreply.github.com>
1 parent f4fb3dc commit d148d83

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"streamify-string": "^1.0.1",
7878
"ts-jest": "^29.1.0",
7979
"ts-loader": "^9.4.1",
80-
"typescript": "~5.9.0",
80+
"typescript": "~6.0.0",
8181
"webpack": "^5.75.0",
8282
"webpack-cli": "^6.0.0"
8383
},

test/unit/loading/ComponentsManager-test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as fs from 'fs';
2-
import { mocked } from 'jest-mock';
32
import type { Resource } from 'rdf-object';
43
import { RdfObjectLoader } from 'rdf-object';
54
import type { Logger } from 'winston';
@@ -9,8 +8,10 @@ import { ConfigRegistry } from '../../../lib/loading/ConfigRegistry';
98
import type { IModuleState } from '../../../lib/loading/ModuleStateBuilder';
109
import { ErrorResourcesContext } from '../../../lib/util/ErrorResourcesContext';
1110

12-
jest.spyOn(fs, 'writeFileSync');
13-
mocked(fs.writeFileSync).mockReturnValue();
11+
jest.mock('fs', () => ({
12+
...jest.requireActual<typeof fs>('fs'),
13+
writeFileSync: jest.fn(),
14+
}));
1415
jest.mock('../../../lib/loading/ComponentsManagerBuilder', () => ({
1516
// eslint-disable-next-line object-shorthand
1617
ComponentsManagerBuilder: function(args: any) {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"declaration": true,
1818
"strict": true,
1919
"skipLibCheck": true,
20+
"types": [ "jest", "node" ],
2021
"resolveJsonModule": true
2122
},
2223
"include": [

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6966,10 +6966,10 @@ typedarray@^0.0.6:
69666966
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
69676967
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
69686968

6969-
typescript@~5.9.0:
6970-
version "5.9.3"
6971-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f"
6972-
integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==
6969+
typescript@~6.0.0:
6970+
version "6.0.2"
6971+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.2.tgz#0b1bfb15f68c64b97032f3d78abbf98bdbba501f"
6972+
integrity sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==
69736973

69746974
uglify-js@^3.1.4:
69756975
version "3.19.3"

0 commit comments

Comments
 (0)