Content-Length: 280230 | pFad | http://github.com/agdolla/testing-library-docs/commit/2c62ea95d7d97320bc8854809de7ad52968774e7

A2 docs: add typescript config update (#200) · agdolla/testing-library-docs@2c62ea9 · GitHub
Skip to content

Commit 2c62ea9

Browse files
tanguyantoineKent C. Dodds
authored and
Kent C. Dodds
committed
docs: add typescript config update (testing-library#200)
1 parent f09ac2b commit 2c62ea9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/react-testing-library/setup.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,23 @@ module.exports = {
257257
}
258258
```
259259

260+
*Typescript config needs to be updated as follow:*
261+
262+
```diff
263+
// tsconfig.json
264+
{
265+
"compilerOptions": {
266+
// ...,
267+
+ "baseUrl": "src",
268+
+ "paths": {
269+
+ "test-utils": ["../utils/test-utils"]
270+
+ }
271+
}
272+
}
273+
```
274+
275+
276+
260277
### Jest and Create React App
261278

262279
If your project is based on top of Create React App, to make the `test-utils`

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/agdolla/testing-library-docs/commit/2c62ea95d7d97320bc8854809de7ad52968774e7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy