Skip to content

Commit

Permalink
other: Fixed global scope pollution issues in @kipper/core tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Luna-Klatzer committed Aug 23, 2024
1 parent 01c0866 commit 90788ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/module/core/global-scope-cleanup.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
afterEach(() => {
// @ts-ignore
var __globalScope = typeof __globalScope !== "undefined" ? __globalScope : typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (20.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (20.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (20.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (18.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (18.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (18.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / run (16.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (22.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (22.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (22.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (22.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (22.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-lock-dependencies (16.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (22.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (20.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (18.x)

'self' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'globalThis' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'window' is not defined

Check failure on line 3 in test/module/core/global-scope-cleanup.test.ts

View workflow job for this annotation

GitHub Actions / tests-with-pck-dependencies (16.x)

'self' is not defined
// @ts-ignore
__globalScope.__kipper = undefined;
});

0 comments on commit 90788ae

Please sign in to comment.