UNPKG

936 BTypeScriptView Raw
1export declare const nxPreset: {
2 testMatch: string[];
3 resolver: string;
4 moduleFileExtensions: string[];
5 coverageReporters: string[];
6 transform: {
7 '^.+\\.(ts|js|html)$': string;
8 };
9 testEnvironment: string;
10 /**
11 * manually set the exports names to load in common js, to mimic the behaviors of jest 27
12 * before jest didn't fully support package exports and would load in common js code (typically via main field). now jest 28+ will load in the browser esm code, but jest esm support is not fully supported.
13 * In this case we will tell jest to load in the common js code regardless of environment.
14 *
15 * this can be removed via just overriding this setting in it's usage
16 *
17 * @example
18 * module.exports = {
19 * ...nxPreset,
20 * testEnvironmentOptions: {},
21 * }
22 */
23 testEnvironmentOptions: {
24 customExportConditions: string[];
25 };
26};