aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/jest-doesnt-auto-import.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bun.js/jest-doesnt-auto-import.js')
-rw-r--r--test/bun.js/jest-doesnt-auto-import.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/bun.js/jest-doesnt-auto-import.js b/test/bun.js/jest-doesnt-auto-import.js
new file mode 100644
index 000000000..4d4a02b37
--- /dev/null
+++ b/test/bun.js/jest-doesnt-auto-import.js
@@ -0,0 +1,12 @@
+export function getJestGlobals() {
+ return {
+ describe: typeof describe === "function" ? describe : undefined,
+ it: typeof it === "function" ? it : undefined,
+ test: typeof test === "function" ? test : undefined,
+ expect: typeof expect === "function" ? expect : undefined,
+ beforeAll: typeof beforeAll === "function" ? beforeAll : undefined,
+ beforeEach: typeof beforeEach === "function" ? beforeEach : undefined,
+ afterAll: typeof afterAll === "function" ? afterAll : undefined,
+ afterEach: typeof afterEach === "function" ? afterEach : undefined,
+ };
+}