aboutsummaryrefslogtreecommitdiff
path: root/test/bun.js/jest-doesnt-auto-import.js
blob: 4d4a02b37378e74b71bef589e1b0aa53334af247 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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,
  };
}