Skip to content

Commit 1eb9294

Browse files
authored
docs: remove "relative imports" in CRA note (#979)
Jest test files without using relative imports in CRA in now allowed with the ability to configure [absolute imports](https://create-react-app.dev/docs/importing-a-component/#absolute-imports). Removing note section.
1 parent f98fd51 commit 1eb9294

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/react-testing-library/setup.mdx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,6 @@ Jest `moduleDirectories` option.
252252
This will make all the `.js` files in the test-utils directory importable
253253
without `../`.
254254

255-
> **Note**
256-
>
257-
> This can't be used with Create React App.
258-
259255
```diff title="my-component.test.js"
260256
- import { render, fireEvent } from '../test-utils';
261257
+ import { render, fireEvent } from 'test-utils';

0 commit comments

Comments
 (0)