Remove the deprecated function `getJestProjects`. BREAKING CHANGE: The previously deprecated `getJestProjects` function was removed in favor of `getJestProjectsAsync`.
31 lines
606 B
Markdown
31 lines
606 B
Markdown
#### Replace Usage of `getJestProjects` with `getJestProjectsAsync`
|
|
|
|
Replaces the usage of the deprecated `getJestProjects` function with the `getJestProjectsAsync` function.
|
|
|
|
#### Sample Code Changes
|
|
|
|
{% tabs %}
|
|
{% tab label="Before" %}
|
|
|
|
```ts {% fileName="jest.config.ts" %}
|
|
import { getJestProjects } from '@nx/jest';
|
|
|
|
export default {
|
|
projects: getJestProjects(),
|
|
};
|
|
```
|
|
|
|
{% /tab %}
|
|
{% tab label="After" %}
|
|
|
|
```ts {% fileName="jest.config.ts" %}
|
|
import { getJestProjectsAsync } from '@nx/jest';
|
|
|
|
export default async () => ({
|
|
projects: await getJestProjectsAsync(),
|
|
});
|
|
```
|
|
|
|
{% /tab %}
|
|
{% /tabs %}
|