How to Set Up Jest and React Testing Library on Vite with TypeScript | Step-by-Step Guide

  Рет қаралды 2,525

Pedro Furquim

Pedro Furquim

Күн бұрын

Пікірлер: 18
@igorzubkov3877
@igorzubkov3877 10 күн бұрын
thank yon man! it help me
@TARUNV-bo5nu
@TARUNV-bo5nu 20 күн бұрын
great video! straight to point
@peterswift7
@peterswift7 16 күн бұрын
This works, cheers !!
@katherinerodriguez5265
@katherinerodriguez5265 3 ай бұрын
Too useful video, it works, thank you!
@mariamdatukishvili4415
@mariamdatukishvili4415 Ай бұрын
"Cannot use JSX unless the '--jsx' flag is provided" Can someone help me please ? :( there are 3 tsconfig files
@gonzaloamirfloresmolina5803
@gonzaloamirfloresmolina5803 Ай бұрын
Hi ,If you keep having the same problem try this...... in the jest configuration in package.json change the value in "transform" with this: "^.+\\.tsx?$": ["ts-jest", { "tsconfig": "tsconfig.app.json" }] it worked for me :D
@judewood3967
@judewood3967 26 күн бұрын
I fixed by including "compilerOptions": { "jsx": "react-jsx" }, in my tsconfig.json file
@TARUNV-bo5nu
@TARUNV-bo5nu 20 күн бұрын
@@judewood3967 tks bro
@chiomaveronicaezezim1933
@chiomaveronicaezezim1933 2 ай бұрын
Hi Pedro, great video. Though the githib repo was easier for me to follow. However, I noticed an omission in the read.me you provided. The part where one has to create a the App.spec.ts file for testing if he or she is not making use of their own codebase and not the todo-list code. That aside, the setup was easy for me with the help of the read.me file and I want to say Thank you so muc.
@pedro_furquim
@pedro_furquim 2 ай бұрын
Happy it helped you! 🎉
@mryasinize
@mryasinize 3 ай бұрын
Thanks for the tutorial, whats your keyboard btw?
@pedro_furquim
@pedro_furquim 3 ай бұрын
Thanks bro! Its a keychron K2
@SA_DarshanPatel
@SA_DarshanPatel 5 ай бұрын
hi i am getting this error , Cannot use JSX unless the '--jsx' flag is provided, please help
@ДмитроЛимар
@ДмитроЛимар 5 ай бұрын
Hi, me too, you're not alone 😁
@masindeodera4206
@masindeodera4206 5 ай бұрын
Anyone find a solution to that yet?😬
@ПавелКардаш-м2щ
@ПавелКардаш-м2щ 5 ай бұрын
I encountered the same problem. The new Vit creates three ts config files. If you go back to the old version with two ts configs, the error goes away.
@antoniomori3652
@antoniomori3652 Ай бұрын
who uses white theme
Testing In React Tutorial - Jest and React Testing Library
21:28
7 React Lessons I Wish I Knew Earlier
7:30
Code Bootcamp
Рет қаралды 77 М.
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
Введение в тестирование в React с помощью Jest
15:55
How to use Vitest with Jest-DOM and React Testing Library
12:19
EricWinkDev
Рет қаралды 41 М.
Vite and Module Federation Makes Micro-Frontends EASY!
27:36
Jack Herrington
Рет қаралды 103 М.
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 92 М.
Next.js with React Testing Library, Jest, TypeScript
25:04
Dave Gray
Рет қаралды 75 М.
How to structure a JS/TS monorepo | From Zero to Turbo - Part 1
11:58
Why Vitest Is Better Than Jest
13:13
Web Dev Simplified
Рет қаралды 143 М.
Sale ! is on | jr Mr bean |
0:58
jr Mr Bean
Рет қаралды 16 МЛН
Kuruluş Osman 99. Bölüm @atv
2:15:39
Kuruluş Osman
Рет қаралды 6 МЛН