You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: example-ssr/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -208,3 +208,7 @@ We recommend using the same framework for component testing: **WebdriverIO** in
208
208
We strongly recommend running performance tests at the page level. The sample tests are shown at the component level for demonstration purposes only.
209
209
210
210
For sample tests, please refer to: [Performance Sample Test](https://github.com/salesforce/lwc-test/blob/master/example-ssr/src/modules/x/hello/__performance__/hello.ssr-performance.test.js)
211
+
212
+
### SSR Compiler Version Support
213
+
214
+
We now support testing against both SSR Compiler v1 and v2. By default, tests run against SSR v2. However, if you want to test with v1, set the environment variable `LWC_SSR_MODE` to `v1`.
Copy file name to clipboardExpand all lines: packages/@lwc/jest-transformer/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,3 +26,7 @@ Update your `jest` config to point the transformer to this package:
26
26
}
27
27
}
28
28
```
29
+
30
+
### SSR Transformer
31
+
32
+
For SSR testing, use the new transformer `@lwc/jest-transformer/ssr`, which compiles components to generate the compiled artifact used for SSR rendering.
0 commit comments