UNPKG

@fairdatasociety/fdp-cli

Version:
40 lines (31 loc) 1.3 kB
/* * 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 (): Config.InitialOptions => { return { // Setup the prerequisites for the tests to run globalSetup: './tests-setup.ts', // 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'], // Run tests from one or more projects projects: [ { displayName: 'node', testEnvironment: 'node', testRegex: 'test/.*\\.spec\\.ts', }, ] as unknown[] as string[], // bad types // The root directory that Jest should scan for tests and modules within rootDir: 'test', // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped testPathIgnorePatterns: ['/node_modules/'], // Increase timeout since we have long running cryptographic functions testTimeout: 4 * 60 * 1000, } }