UNPKG

@nx/jest

Version:

The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.

37 lines (36 loc) 1.29 kB
/** * TODO(v21): Remove this function * @deprecated To get projects use {@link getJestProjectsAsync} instead. This will be removed in v21. * Get a list of paths to all the jest config files * using the Nx Jest executor. * * This is used to configure Jest multi-project support. To support projects * using inferred targets @see getJestProjectsAsync * * To add a project not using the Nx Jest executor: * export default { * projects: [...getJestProjects(), '<rootDir>/path/to/jest.config.ts']; * } * **/ export declare function getJestProjects(): string[]; /** * a list of nested projects that have jest configured * to be used in the testPathIgnorePatterns property of a given jest config * https://jestjs.io/docs/configuration#testpathignorepatterns-arraystring * */ export declare function getNestedJestProjects(): string[]; /** * Get a list of paths to all the jest config files * using the Nx Jest executor and `@nx/run:commands` * running `jest`. * * This is used to configure Jest multi-project support. * * To add a project not using the Nx Jest executor: * export default async () => ({ * projects: [...(await getJestProjectsAsync()), '<rootDir>/path/to/jest.config.ts']; * }); * **/ export declare function getJestProjectsAsync(): Promise<string[]>;