File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 11import * as fs from 'fs' ;
2- import { mocked } from 'jest-mock' ;
32import type { Resource } from 'rdf-object' ;
43import { RdfObjectLoader } from 'rdf-object' ;
54import type { Logger } from 'winston' ;
@@ -9,8 +8,10 @@ import { ConfigRegistry } from '../../../lib/loading/ConfigRegistry';
98import type { IModuleState } from '../../../lib/loading/ModuleStateBuilder' ;
109import { 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+ } ) ) ;
1415jest . mock ( '../../../lib/loading/ComponentsManagerBuilder' , ( ) => ( {
1516 // eslint-disable-next-line object-shorthand
1617 ComponentsManagerBuilder : function ( args : any ) {
Original file line number Diff line number Diff line change 1717 "declaration" : true ,
1818 "strict" : true ,
1919 "skipLibCheck" : true ,
20+ "types" : [ " jest" , " node" ],
2021 "resolveJsonModule" : true
2122 },
2223 "include" : [
Original file line number Diff line number Diff 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
69746974uglify-js@^3.1.4 :
69756975 version "3.19.3"
You can’t perform that action at this time.
0 commit comments