# Test-Driven React 2: missing tsconfig for @testing-library/jest-dom ?

**URL:** <https://forum.devtalk.com/t/test-driven-react-2-missing-tsconfig-for-testing-library-jest-dom/148825>\
**Category:** PragProg Customers\
**Tags:** book-test-driven-react-2, errata\
**Created:** [25 March 2024 18:06 UTC](https://forum.devtalk.com/t/test-driven-react-2-missing-tsconfig-for-testing-library-jest-dom/148825 "2024-03-25T18:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fixedgigha](https://forum.devtalk.com/user_avatar/forum.devtalk.com/fixedgigha/32/5978_2.png) [@fixedgigha](https://forum.devtalk.com/u/fixedgigha)\
**Post date:** [25 March 2024 18:06 UTC](https://forum.devtalk.com/t/test-driven-react-2-missing-tsconfig-for-testing-library-jest-dom/148825/1 "2024-03-25T18:06:52Z")

</div>

@TrevorBurnham

Maybe I missed it, but I think you need to add @testing-library/jest-dom to the compileOptions/types in tsconfig.json, other Wallaby shows the Carousel tests with a “document not defined” error

---

<div class="post-metadata">

**Author:** ![TrevorBurnham](https://forum.devtalk.com/user_avatar/forum.devtalk.com/trevorburnham/32/2118_2.png) [@TrevorBurnham](https://forum.devtalk.com/u/TrevorBurnham)\
**Post date:** [31 March 2024 22:51 UTC](https://forum.devtalk.com/t/test-driven-react-2-missing-tsconfig-for-testing-library-jest-dom/148825/2 "2024-03-31T22:51:45Z")

</div>

Hmm… I’m able to run the tests in Wallaby without that bit of configuration. I found this issue: [`ReferenceError: document is not defined` for SvelteKit + Vitest + `@testing-library/svelte` test · Issue #3283 · wallabyjs/public · GitHub](https://github.com/wallabyjs/public/issues/3283) Can you try running the “Wallaby.js: Force Core Update” command and see if you still get the error?
