We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c40112 commit e061635Copy full SHA for e061635
test/unit/browser/vscode.test.ts
@@ -191,8 +191,8 @@ describe("vscode", () => {
191
}
192
const errorMsgPrefix = "[vscode]"
193
const errorMessage = `${errorMsgPrefix} Could not get loader. window is undefined or missing.`
194
- /* eslint-disable no-global-assign */
195
- window = undefined as unknown as Window & typeof globalThis
+ // eslint-disable-next-line no-global-assign
+ global.window = undefined as unknown as Window & typeof globalThis
196
expect(() => {
197
if (typeof window === "undefined") {
198
throw new Error(errorMessage)
0 commit comments