File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
webview-ui/src/components/settings/__tests__ Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,8 @@ describe("ApiOptions Component", () => {
120120 const mockPostMessage = vi . fn ( )
121121
122122 beforeEach ( ( ) => {
123- global . vscode = { postMessage : mockPostMessage } as any
123+ //@ts -expect-error - vscode is not defined in the global namespace in test environment
124+ global . vscode = { postMessage : mockPostMessage }
124125 } )
125126
126127 it ( "renders Fireworks API Key input" , ( ) => {
@@ -167,7 +168,7 @@ describe("ApiOptions Component", () => {
167168vi . mock ( "../../../context/ExtensionStateContext" , async ( importOriginal ) => {
168169 const actual = await importOriginal ( )
169170 return {
170- ...actual ,
171+ ...( actual || { } ) ,
171172 // your mocked methods
172173 useExtensionState : vi . fn ( ( ) => ( {
173174 apiConfiguration : {
You can’t perform that action at this time.
0 commit comments