- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
How to add Unit Tests to Vite Project? React Unit Testing Tutorial with Testing Library and Vitest
Learn how to set up unit tests in a ReactJS project created with ViteJS. Step-by-step process of integrating React Testing Library and Vitest into Lyrics Search project
Source code: https://github.com/DzmitryUr/react-apps/tree/main/lyrics-search
Description in README: https://github.com/DzmitryUr/react-apps?tab=readme-ov-file#unit-tests
Lyrics Search Video: https://youtu.be/OJgLNWy0oBI
⌚️Timestamps:
0:00 Introduction
0:34 Instalingl dependencies (vitest @testing-library/react)
1:15 Updating vite.config.js
1:37 Creating tests/setup.js
2:17 Updating scripts section in package.json
3:07 Creating .spec.jsx file for unit test
4:40 Adding 'describe' section
6:20 First unit test. Checking that the component renders correctly
8:45 Running unit tests with commands 'vitest run' and 'vitest' watch mode
#ReactJS #Vitest #UnitTesting #TestingLibrary #UnitTests #WebDevelopment
Видео How to add Unit Tests to Vite Project? React Unit Testing Tutorial with Testing Library and Vitest канала DevWebApp
Source code: https://github.com/DzmitryUr/react-apps/tree/main/lyrics-search
Description in README: https://github.com/DzmitryUr/react-apps?tab=readme-ov-file#unit-tests
Lyrics Search Video: https://youtu.be/OJgLNWy0oBI
⌚️Timestamps:
0:00 Introduction
0:34 Instalingl dependencies (vitest @testing-library/react)
1:15 Updating vite.config.js
1:37 Creating tests/setup.js
2:17 Updating scripts section in package.json
3:07 Creating .spec.jsx file for unit test
4:40 Adding 'describe' section
6:20 First unit test. Checking that the component renders correctly
8:45 Running unit tests with commands 'vitest run' and 'vitest' watch mode
#ReactJS #Vitest #UnitTesting #TestingLibrary #UnitTests #WebDevelopment
Видео How to add Unit Tests to Vite Project? React Unit Testing Tutorial with Testing Library and Vitest канала DevWebApp
Комментарии отсутствуют
Информация о видео
30 августа 2024 г. 20:48:44
00:12:31
Другие видео канала




















