File tree 1 file changed +0
-27
lines changed
1 file changed +0
-27
lines changed Original file line number Diff line number Diff line change @@ -177,33 +177,6 @@ describe("vscode", () => {
177
177
} )
178
178
} )
179
179
describe ( "registerRequireOnSelf" , ( ) => {
180
- beforeAll ( ( ) => {
181
- const { window } = new JSDOM ( )
182
- // @ts -expect-error We know these are the exact same type
183
- // but we need to do this for the test to work
184
- global . self = window . self
185
- global . window = window as unknown as Window & typeof globalThis
186
- global . document = window . document
187
- global . navigator = window . navigator
188
- global . location = location as Location
189
- } )
190
-
191
- beforeEach ( ( ) => {
192
- jest . clearAllMocks ( )
193
- } )
194
-
195
- afterEach ( ( ) => {
196
- jest . resetModules ( )
197
- } )
198
-
199
- afterAll ( ( ) => {
200
- jest . restoreAllMocks ( )
201
-
202
- global . window = undefined as unknown as Window & typeof globalThis
203
- global . document = undefined as unknown as Document & typeof globalThis
204
- global . navigator = undefined as unknown as Navigator & typeof globalThis
205
- global . location = undefined as unknown as Location & typeof globalThis
206
- } )
207
180
it ( "should throw an error if self is undefined" , ( ) => {
208
181
const options = {
209
182
base : "/" ,
You can’t perform that action at this time.
0 commit comments