CodeSandbox
react-ts-unit-test-example
Code supplement for the blog post "No, TypeScript is not a waste of time." https://dev.to/resir014/no-typescript-is-not-a-waste-of-time-2hpk
dagda1
383.8k
7
171
Edit Sandbox
Files
public
src
Components
Containers
history
hooks
routes
tests
types
util
index.tsx
setupTests.ts
styles.css
jest.config.js
package.json
tsconfig.json
Dependencies
@types/jest
26.0.0
@testing-library/react
^10.2.1
@testing-library/react-hooks
3.3.0
jest
26.0.1
jest-environment-jsdom-sixteen
1.0.3
@testing-library/jest-dom
5.10.1
react
^16.13.1
react-dom
^16.13.1
react-router-dom
^5.2.0
react-scripts
^3.4.1
react-test-renderer
16.13.1
ts-jest
26.1.0
typescript
^3.9.5
External Resources
Open Sandbox
index.tsx
Console
0
Problems
0
React DevTools
0
All
Info
Warning
Error
Debug