2022-04-29 15:51:09 +02:00
|
|
|
/*
|
|
|
|
|
* 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 {
|
2022-10-26 06:45:46 -07:00
|
|
|
preset: 'ts-jest',
|
|
|
|
|
runner: '@ethersphere/jest-serial-runner',
|
|
|
|
|
testRegex: 'test/integration/.*\\.spec\\.ts',
|
|
|
|
|
testEnvironment: 'node',
|
|
|
|
|
|
2022-04-29 15:51:09 +02:00
|
|
|
// 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',
|
2022-10-26 06:45:46 -07:00
|
|
|
|
2022-04-29 15:51:09 +02:00
|
|
|
// Increase timeout since we are spinning Bee 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/'],
|
|
|
|
|
}
|
|
|
|
|
}
|