Jest encountered syntax it cannot parse. This usually means a file needs to be transformed (e.g., TypeScript, JSX, ESM) but the transformer is not configured.
// jest.config.ts
export default {
transform: {
'^.+\\.tsx?$': ['ts-jest', {
tsconfig: 'tsconfig.json',
}],
},
};Use ts-jest to transform TypeScript and TSX files. Alternatively, use @swc/jest for faster transforms.
// jest.config.ts
export default {
transformIgnorePatterns: [
'node_modules/(?!(esm-package|another-esm-package)/)',
],
};By default, Jest ignores node_modules. Override this for ESM packages that need transformation.
ObserveOne detects test configuration issues and suggests optimal transform setups for your stack.
Start Monitoring FreeJest could not resolve a module import. The file may not exist, the path may be wrong, or the module resolution config may be misconfigured.
Jest's transformer (Babel, ts-jest, SWC) failed to process a file. The transformer may be misconfigured or the file contains unsupported syntax.
The rendered output does not match the stored snapshot. The component output changed since the snapshot was last updated.
An async test did not complete within the default 5-second timeout. The async operation may be hanging, or done() was never called.
A Promise was rejected but no .catch() handler or try/catch block caught the error. This can cause flaky tests or missed failures.