vitest-browser-qwik 0.3.4 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A modern testing setup demonstrating browser-based testing for Qwik components using Vitest. This project showcases how to effectively test Qwik components with both Client-Side Rendering (CSR) and Server-Side Rendering (SSR), making it perfect for testing complex UI behaviors across environments.
4
4
 
5
+ > This project uses Qwik v2 to render components, if you want to use v1, please downgrade to vitest-browser-qwik@0.1.0.
6
+
5
7
  ## Getting Started
6
8
 
7
9
  ```bash
@@ -164,9 +166,7 @@ but Vite 6.x should work as well.
164
166
 
165
167
  ## Limitations
166
168
 
167
- - For `renderSSR` you must always import the component from another file, local components are not supported. This is because this would require importing the vitest context, or moving local components into separate files dynamically, which involves a lot of unwanted complexity.
168
-
169
- - In the vitest config there is a hardcoded value for whether or not browser mode is headless. This is because when relying on environment variables, it seems there is an additional cost in the vitest core side that introduces potential race conditions.
169
+ - For `renderSSR`, if you have a component declared locally in the test file, and you import something in the browser test file that is browser only other than vitest, it will not be available in the SSR context. Make sure to put this in a separate file.
170
170
 
171
171
  ## Contributing
172
172
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitest-browser-qwik",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "description": "Render Qwik components using Vitest Browser Mode",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -49,6 +49,11 @@
49
49
  "vite": ">=6.3.5",
50
50
  "vitest": "^4.0.18"
51
51
  },
52
+ "peerDependenciesMeta": {
53
+ "vitest": {
54
+ "optional": true
55
+ }
56
+ },
52
57
  "devDependencies": {
53
58
  "@biomejs/biome": "2.0.0",
54
59
  "@playwright/test": "see flake.nix",