-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Open
Labels
Description
Version
30.0.5
Steps to reproduce
jest.config.ts
import type { JestConfigWithTsJest } from "ts-jest";
const jestConfig: JestConfigWithTsJest = {
testEnvironment: "jest-allure-circus",
verbose: true,
testMatch: ["**/*.spec.ts"],
extensionsToTreatAsEsm: [".ts"],
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
},
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
useESM: true,
},
],
},
testTimeout: 450000,
};
export default jestConfig;
Execute the following code with yarn jest
describe("Describe example", () => {
test("Test example", async () => {
await new Promise((resolve) => setTimeout(resolve, 1000));
expect(true);
});
});
Expected behavior
I expect tests to be executed without any failure
Actual behavior
TypeError: Cannot read properties of undefined (reading 'bind')
at Runtime._createJestObjectFor (node_modules/jest-runtime/build/index.js:1710:64
Additional context
No response
Environment
System:
OS: macOS 15.5
CPU: (10) x64 Apple M1 Max
Binaries:
Node: 20.11.0 - ~/.proto/shims/node
Yarn: 1.22.22 - /usr/local/bin/yarn
npm: 10.2.4 - ~/.proto/shims/npm
pnpm: 8.14.1 - ~/.proto/shims/pnpm
bun: 1.1.1 - ~/.proto/shims/bun
npmPackages:
jest: ^30.0.5 => 30.0.5