File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ const vscode = {
88 } ,
99 workspace : {
1010 onDidSaveTextDocument : jest . fn ( ) ,
11+ getConfiguration : jest . fn ( ) . mockImplementation ( ( section ) => ( {
12+ get : jest . fn ( ) . mockReturnValue ( undefined ) ,
13+ update : jest . fn ( ) . mockResolvedValue ( undefined ) ,
14+ } ) ) ,
1115 } ,
1216 Disposable : class {
1317 dispose ( ) { }
Original file line number Diff line number Diff line change @@ -150,6 +150,10 @@ jest.mock("vscode", () => {
150150 stat : jest . fn ( ) . mockResolvedValue ( { type : 1 } ) , // FileType.File = 1
151151 } ,
152152 onDidSaveTextDocument : jest . fn ( ( ) => mockDisposable ) ,
153+ getConfiguration : jest . fn ( ) . mockImplementation ( ( section ) => ( {
154+ get : jest . fn ( ) . mockReturnValue ( undefined ) ,
155+ update : jest . fn ( ) . mockResolvedValue ( undefined ) ,
156+ } ) ) ,
153157 } ,
154158 env : {
155159 uriScheme : "vscode" ,
You can’t perform that action at this time.
0 commit comments