Talk to an Instructor:
Jonas Felix
Vitest – The ultra-fast testing framework for modern web development.
Experience lightning-fast execution, built-in TypeScript support, and a familiar Jest-like API – optimized for projects using Vite, but flexible enough for any setup. Vitest delivers instant feedback, smart watch mode, and seamless integration with your dev tools. Less waiting, more developing.
We are happy to conduct tailored courses for your team - on-site, remotely or in our course rooms.
During the course, we develop step by step a comprehensive set of unit and integration tests for a modern JavaScript/TypeScript application. We focus on the practical application of Vitest:
– Overview and Architecture of Vitest:
... - Comparison Vitest vs. Jest vs. Mocha
... - Vite integration and performance benefits
... - Installation and project setup
... - Configuration and workspace setup
– Fundamentals of Unit Testing:
... - Test structure and best practices
... - Describe, test, and it blocks
... - Assertions and matchers
... - Setup and teardown (beforeEach, afterEach)
– Mocking and Stubbing:
... - Function mocks and spies
... - Module mocking
... - Timer mocks (vi.useFakeTimers)
... - Date and random mocking
... - Partial mocks
– Asynchronous Testing:
... - Promises and async/await
... - Callbacks and done
... - Timeout handling
... - Concurrent tests
– Integration Testing:
... - Testing component interactions
... - API integration tests
... - Database mocking
... - Environment-specific tests
– Frontend Testing with Vitest:
... - DOM testing with happy-dom/jsdom
... - Component testing (React, Vue, Svelte)
... - Testing Library integration
... - Event handling and user interactions
– Code Coverage:
... - Coverage reports with c8/istanbul
... - Coverage thresholds
... - Branch and line coverage
... - Identifying uncovered code
– Snapshot Testing:
... - Inline snapshots
... - File snapshots
... - Snapshot updates and management
... - Custom serializers
– Performance and Optimization:
... - Parallel test execution
... - Test sharding
... - Watch mode and HMR
... - Benchmark tests with Vitest Bench
– Advanced Features:
... - Custom matchers
... - Test context and fixtures
... - In-source testing
... - Type testing with expect-type
– CI/CD Integration:
... - GitHub Actions, GitLab CI integration
... - Test reports and artifacts
... - Parallel CI runs
... - Docker-based test environments
The course is based on refined and tested course material with explanation, practical exercises, course project with code, solution code, and further information.
You will not only learn these concepts but also implement them practically.
Disclaimer: The actual course content may vary from the above, depending on the trainer, implementation, duration and constellation of participants.
Whether we call it training, course, workshop or seminar, we want to pick up participants at their point and equip them with the necessary practical knowledge so that they can apply the technology directly after the training and deepen it independently.
By the end of the course, participants will be able to develop comprehensive unit and integration tests with Vitest and integrate them into modern JavaScript/TypeScript projects.
2 Days (Is individually adapted for in-house courses.)
Proven mix of explanation, live coding, and practical exercises with collaborative building of a comprehensive test suite.
Software developers who want to develop modern unit and integration tests for JavaScript/TypeScript projects with Vitest.
Basic knowledge of JavaScript or TypeScript as well as experience in development with modern JavaScript frameworks (React, Vue, Svelte) or Node.js.
Each participant will receive a questionnaire and installation instructions after registration. According to the answers, we send individual feedback.
Thank you for your request, we will get back to you as soon as possible.
Unexpected error - please contact us by E-Mail or Phone.
Sign up for the waiting list for more public course dates. Once we have enough people on the waiting list, we will determine a date that suits everyone as much as possible and schedule a new session. If you want to participate directly with two colleagues, we can even plan a public course specifically for you.
Thank you for your request, we will get back to you as soon as possible.
Unexpected error - please contact us by E-Mail or Phone.
Vitest was developed in 2021 by Anthony Fu and the Vite team when the need for a modern testing framework that works seamlessly with Vite was recognized. The project emerged from the realization that existing testing tools like Jest were not optimally suited for ESM-based projects and Vite's fast transformation pipeline.
Development was significantly driven by the Vite community, with important contributions from developers like Hiroshi Ogawa and Patak. Key milestones included the introduction of Browser Mode (2022), Workspace Support for monorepos (2023), and Vitest UI for a graphical test interface. The Jest-compatible API enabled many projects to migrate easily.
Today, Vitest is one of the fastest-growing testing frameworks in the JavaScript ecosystem and is used by major projects like Nuxt, Vue, and Vite itself. It has set new standards for performance and developer experience in testing and, with its native TypeScript and ESM support, offers a modern alternative to established tools. The close integration with the Vite ecosystem and the active community ensure continuous development.
Talk to an Instructor:
Jonas Felix
Training-Centers:
Basel:
- Aeschenplatz 6, 4052 Basel
Zurich:
- HWZ, Lagerstrasse 5, 8004 Zürich
Company address:
felixideas GmbH
Baslerstrasse 5a
4102 Binningen