Skip to main content
0 votes
0 answers
42 views

I've just moved over to Angular 21 and started using Vitest. I'd like to initialize one of my services before the tests starts. So I added provideAppInitializer in src/test-providers.ts like so: // ...
Zachu's user avatar
  • 57
0 votes
0 answers
62 views

I could successfully migrate my Angular 20/Jasmine/Karma app to Angula r21/Vitest All my tests are running correctly, except the ones that use debounceTime from RxJS As a workaround for now, ny unit ...
Paulo Costa's user avatar
Advice
1 vote
1 replies
192 views

I am a bit confused with the Angular testing landscape. I have seen that Vitest will become the new default, replacing Karma. The question I then have is what about Jasmine. Does Vitest replace only ...
Maarten's user avatar
  • 11
0 votes
1 answer
48 views

While I was able to get my C# code running in the browser as WebAssembly, I get errors like this when trying to run any (vitest) unit tests that load the module that initializes .NET: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯...
Qwertie's user avatar
  • 17.4k
-1 votes
1 answer
92 views

I'm trying to have Vitest + Storybook setup and the following is my vitest.config.ts: import path from "path"; import { fileURLToPath } from "node:url"; import { defineConfig } ...
VariantAbdulaziz's user avatar
-4 votes
0 answers
63 views

I am using Vitest in browser mode, with Playwright as the provider. Whenever a test fails, a screenshot of the failed test is created in __screenshots__/<filename>/<test-name>. I am unsure ...
Joe's user avatar
  • 409
0 votes
1 answer
72 views

I have a Laravel 12 project built with the Vue starter kit. By default, the project didn't have any frontend testing libraries. I want to add tests in Vitest. When I run vitest, I get the error: Error:...
TalVik99's user avatar
  • 304
0 votes
0 answers
60 views

When writing a Vitest config file in TypeScript, type errors don't seem to be caught. How to change that (and thus benefit from type checking if an option property is wrong)? Here's an example vitest....
Quentin's user avatar
  • 1,173
1 vote
0 answers
46 views

Problem I have a Vue project that uses Vuex for state management. Parts of the Vuex store are often mocked in unit tests (Vitest). When Vuex stores are defined in both the main production code and in ...
Neill's user avatar
  • 1,176
0 votes
2 answers
97 views

I have a function that allows users to register. After successful registration, the user is redirected to the home page (after 5 seconds). Before being redirected, the user receives a toast ...
Clyde's user avatar
  • 62
0 votes
1 answer
124 views

I'm testing components built with shadcn/ui, which uses Radix UI under the hood. When running UI interaction tests using Vitest and @testing-library/user-event, I keep getting the following error: ...
Palladio's user avatar
0 votes
1 answer
52 views

I am struggling adding mocked methods when testing a Pinia store's functionality. There is very little documentation relating to actually testing the stores themselves, as most Pinia's official ...
Vampuuri's user avatar
-1 votes
1 answer
69 views

In a large Vue 3 app, we have some helper modules that are imported into various components. One of these helpers returns the root node, which itself contains many other methods. In the app calls to ...
danwellman's user avatar
  • 9,401
0 votes
0 answers
19 views

I have a Vite app and configured a domain - say https://abcd.io:5173 - as a domain and certificates are generated for this domain. Now I would like to use MSW for testing. But when I try to enable ...
Abhilash D K's user avatar
  • 1,329
0 votes
0 answers
36 views

I'm working on my portfolio site, and learning how to write TypeScript and test scripts. I'm stuck resolving these errors: RUN v3.2.4 /Users/sigma/Documents/Websites/Site/Site 5 ❯ tests/lightbox....
herrjosua's user avatar

15 30 50 per page
1
2 3 4 5
62