UNPKG

snyk-docker-plugin

Version:
30 lines (28 loc) 1.22 kB
module.exports = { preset: "ts-jest", setupFilesAfterEnv: ["<rootDir>/test/matchers/setup.ts"], testEnvironment: "node", testMatch: ["<rootDir>/test/**/*.spec.ts"], testPathIgnorePatterns: ["<rootDir>/test/windows/"], testTimeout: 600000, // 10 minutes // TODO: This option is printing Array\Object prefixing arrays\objects in snapshots files // this settings were added when migrated to Jest 29 to support the old snapshots format // this settings should be removed in the future after snapshot migration to the new Jest snapshot format // more details over the breaking change of Jest snapshot format can be found here: // https://jestjs.io/docs/next/upgrading-to-jest29#snapshot-format snapshotFormat: { escapeString: true, printBasicPrototype: true, }, // TODO: This is here until a bug in Jest (which in turn affects ts-jest) is resolved. // It affects our CI/CD runs and makes the machine run out of memory. // https://github.com/facebook/jest/issues/10550 // https://snyk.slack.com/archives/CLW30N31V/p1602232569018000?thread_ts=1602230753.017500&cid=CLW30N31V transform: { '^.+\\.tsx?$': [ 'ts-jest', { isolatedModules: true }, ], }, };