2022-03-05 15:14:32 +09:00
|
|
|
import { cpus } from 'os'
|
|
|
|
|
2020-08-24 19:02:21 +09:00
|
|
|
const configuration = {
|
|
|
|
extensions: ['ts', 'tsx'],
|
2021-12-24 12:39:53 +09:00
|
|
|
files: ['cli/**/*.spec.ts', 'examples/**/__test__/**/*.spec.ts'],
|
2020-10-14 17:15:20 +09:00
|
|
|
require: ['ts-node/register/transpile-only'],
|
2020-09-22 01:19:26 +09:00
|
|
|
environmentVariables: {
|
2021-09-23 02:29:09 +09:00
|
|
|
TS_NODE_PROJECT: './examples/tsconfig.json',
|
2020-09-22 01:19:26 +09:00
|
|
|
},
|
2022-10-31 22:13:11 +09:00
|
|
|
timeout: '5m',
|
2022-03-05 15:14:32 +09:00
|
|
|
workerThreads: true,
|
|
|
|
concurrency: process.env.CI ? 2 : cpus().length,
|
|
|
|
failFast: false,
|
|
|
|
verbose: !!process.env.CI,
|
2020-08-24 19:02:21 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
if (parseInt(process.versions.napi, 10) < 4) {
|
|
|
|
configuration.compileEnhancements = false
|
|
|
|
}
|
|
|
|
|
2020-10-14 17:15:20 +09:00
|
|
|
export default configuration
|