mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-02 13:03:07 +00:00
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
/*
|
|
* For a detailed explanation regarding each configuration property and type check, visit:
|
|
* https://jestjs.io/docs/en/configuration.html
|
|
*/
|
|
import type { Config } from '@jest/types'
|
|
|
|
export default async (): Promise<Config.InitialOptions> => {
|
|
return {
|
|
preset: 'ts-jest',
|
|
runner: '@ethersphere/jest-serial-runner',
|
|
testRegex: 'test/integration/.*\\.spec\\.ts',
|
|
testEnvironment: 'node',
|
|
|
|
// Indicates whether the coverage information should be collected while executing the test
|
|
// collectCoverage: false,
|
|
|
|
// The directory where Jest should output its coverage files
|
|
coverageDirectory: 'coverage',
|
|
|
|
// An array of regexp pattern strings used to skip coverage collection
|
|
coveragePathIgnorePatterns: ['/node_modules/'],
|
|
|
|
// An array of directory names to be searched recursively up from the requiring module's location
|
|
moduleDirectories: ['node_modules'],
|
|
|
|
// The root directory that Jest should scan for tests and modules within
|
|
rootDir: 'test',
|
|
|
|
// Increase timeout since we are spinning Codex containers
|
|
testTimeout: 4 * 60 * 1000,
|
|
|
|
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
|
testPathIgnorePatterns: ['/node_modules/'],
|
|
}
|
|
}
|