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
-**storybook-angular:** use vite config root when angularBuilderContext unavailable ([#2033](https://github.com/analogjs/analog/issues/2033)) ([76cfb94](https://github.com/analogjs/analog/commit/76cfb948c2571bf21522d185d4dc43fa4e4c121e))
Add the `test-storybook` target to your `angular.json`:
439
+
440
+
```json
441
+
"test-storybook": {
442
+
"builder": "@analogjs/vitest-angular:test",
443
+
"options": {
444
+
"configFile": "vitest.config.ts"
445
+
}
446
+
}
447
+
```
448
+
449
+
Add a test script to your `package.json`:
450
+
451
+
```json
452
+
"scripts": {
453
+
"test-storybook": "ng run your-app:test-storybook"
454
+
}
455
+
```
456
+
457
+
Run your interaction tests with:
458
+
459
+
```sh
460
+
npm run test-storybook
461
+
```
462
+
463
+
You can also run tests directly in the Storybook UI. Start Storybook and use the "Run Tests" button in the sidebar, or navigate to a story to see interaction tests run automatically in the Interactions panel.
0 commit comments