Commit a74a40b
authored
chore: move dependencies out of snap test case (#264)
### TL;DR
Added `@vitest/browser-playwright` as a catalog dependency
### What changed?
- Added `@vitest/browser-playwright` to the CLI package dependencies
- Removed the `@vitest/browser-playwright` dependency from the vitest-browser-mode snap test package.json
- Modified the vitest-browser-mode snap test to no longer run `vite install` before tests
- Updated the snap test output to reflect these changes
### How to test?
1. Run the vitest-browser-mode snap test to verify it works without the explicit installation step
2. Verify that browser tests using Playwright work correctly with the updated dependencies
### Why make this change?
This change streamlines the testing process by making `@vitest/browser-playwright` available as a catalog dependency rather than requiring it to be installed separately in each test. This eliminates the need for an explicit installation step in the vitest-browser-mode snap test, making the testing workflow more efficient and consistent.1 parent c7be908 commit a74a40b
6 files changed
Lines changed: 87 additions & 82 deletions
File tree
- packages/cli
- snap-tests/vitest-browser-mode
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 4 | + | |
8 | 5 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 1 | | |
21 | 2 | | |
22 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments