Commit d77b85d
committed
test(snapshots): migrate
Migrates the 11 `vite-*` cases (vite plugin factory loading, config task,
task-path env) from `packages/cli/snap-tests` to the PTY snapshot suite,
and removes the legacy dirs. The 5 `vite-plugins-*` build cases asserted a
built marker via a `cat dist/index.html | grep '<marker>'` shell pipe the
migrator cannot translate; hand-converted to
`vpt grep-file dist/index.html <marker>`. Adds a redaction rule for
vitest's nondeterministic `Start at HH:MM:SS` wall-clock line, needed by
vite_plugins_async_test.
Part of #2116.vite-* cases to the PTY snapshot suite1 parent 2778262 commit d77b85d
87 files changed
Lines changed: 219 additions & 125 deletions
File tree
- crates/vite_cli_snapshots/tests/cli_snapshots
- fixtures
- vite_config_task
- snapshots
- vite_plugins_async_test
- snapshots
- src
- vite_plugins_async
- snapshots
- vite_plugins_exec_build
- snapshots
- vite_plugins_run_build
- snapshots
- vite_plugins_run_lint
- snapshots
- src
- vite_plugins_run_verbatim_build
- snapshots
- vite_plugins_skip_on_format
- snapshots
- src
- vite_plugins_skip_on_lint
- snapshots
- src
- vite_plugins_sync
- snapshots
- vite_task_path_env_include_pm
- snapshots
- packages/cli/snap-tests
- vite-config-task
- vite-plugins-async-test
- vite-plugins-async
- vite-plugins-exec-build
- vite-plugins-run-build
- vite-plugins-run-lint
- vite-plugins-run-verbatim-build
- vite-plugins-skip-on-format
- vite-plugins-skip-on-lint
- vite-plugins-sync
- vite-task-path-env-include-pm
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 6 additions & 3 deletions
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 12 additions & 0 deletions
0 commit comments