Learn JavaScript unit testing from scratch by using testing framework Vitest.
X - / igorbabko
Telegram - https://t.me/igor_babko_dev
🧪 Source code for every lesson: https://github.com/igorbabko/javascri...
🧪 GitHub repository: https://github.com/igorbabko/javascri...
🧪 GitLab repository: https://gitlab.com/igorbabko/javascri...
🧪 Bitbucket repository: https://bitbucket.org/igorbabko-llc/j...
Vue Composition API From Scratch: • Vue Composition API From Scratch
TypeScript Integration Into Vue App From Scratch: • TypeScript Integration Into Vue App From S...
🎨 VS Code Theme: https://marketplace.visualstudio.com/...
🎨 VS Code Icons: https://marketplace.visualstudio.com/...
✒️ Font: https://philpl.gumroad.com/l/dank-mono
🍿 Playlist: • JavaScript Unit Testing For Beginners
👀 Other courses:
PhpStorm Setup: • PhpStorm Setup
Builds with Vite: • Builds with Vite
Vite in Laravel Project: • Vite in Laravel Project
My VS Code Setup: • My VS Code Setup
VS Code Productivity | My Hot Keys: • My VS Code Key Bindings
VSCode Neovim Extension: • VSCode Neovim Extension
#javascript #typescript #testing #unittesting
🕛 Time codes:
00:00 - 1. Installing Vitest
06:14 - 2. First unit test
18:37 - 3. Checks by using method toBe
25:41 - 4. Testing formatSeconds function
34:09 - 5. Testing formatSecondsWithSign function
38:13 - 6. Testing normalizeSelectValue function
42:40 - 7. Testing getProgressColorClass function
46:42 - 8. Mocking return values
52:08 - 9. Running tests in a browser environment
01:02:20 - 10. Mocking current date
01:09:23 - 11. Testing tomorrow function
01:14:08 - 12. Testing functions from the time module
01:21:42 - 13. Testing updateTimelineItem function
01:27:01 - 14. Testing resetTimelineItemActivities function
01:34:55 - 15. Testing calculateTrackedActivitySeconds function
01:39:53 - 16. Using constants in tests
01:48:48 - 17. Grouping tests (describe)
01:56:34 - 18. Grouping tests of timeline items module
02:00:50 - 19. beforeEach hook
02:06:14 - 20. beforeEach hook for timeline items tests
02:09:15 - 21. Parameterized tests
02:13:34 - 22. Parameterized tests for functions module
02:21:23 - 23. Parameterized tests for router and time modules
02:28:40 - 24. Alternate notation for parameterized tests
02:32:19 - 25. Snapshots
02:37:07 - 26. Vitest UI
02:40:08 - 27. Reporters
02:46:20 - 28. Coverage
02:51:14 - 29. Refactoring
On this page of the site you can watch the video online 🧪 JavaScript Unit Testing For Beginners - Full Course with a duration of hours minute second in good quality, which was uploaded by the user Igor Babko 15 May 2024, share the link with friends and acquaintances, this video has already been watched 302 times on youtube and it was liked by 28 viewers. Enjoy your viewing!