import type { Config } from '@jest/types'; import { OdsGetJestConfig } from '@ovhcloud/ods-testing'; const args = process.argv.slice(2); /** * synchronous config for jest. * * example with async config : * ```typescript * export default async (): Promise => { * return { * verbose: true, * }; * }; * ``` */ const config: Config.InitialOptions = { ...OdsGetJestConfig({ basePath: '/../../../..', args }), /** * setup jest files executed for each test and in the test environment * @see https://jestjs.io/fr/docs/configuration#setupfiles-array */ setupFiles: ["./jest.setup.ts"] }; export default config;