Commit e40e85f
committed
Migrates the 6 lint cases (ignore patterns, unmatched pattern, vite config rules, vite-plus import rules, nuxt variant, type-aware) from `packages/cli/snap-tests` to the PTY snapshot suite, and removes the legacy dirs. Part of #2116.
`oxlint-typeaware` needed hand conversion: its `echo //comment >> types.ts` appends became `vpt write-file` with the full appended content, and its legacy `ignoredPlatforms: [""]` (matches nothing) was translated verbatim to `skip-platforms = [""]`, which the new runner's platform parser rejects; dropped. The recorded snapshot proves the type-aware distinction: non-type-aware lint shows `cache hit` after the types.ts change, type-aware shows `cache miss: 'types.ts' modified`.
Adds a redaction rule masking oxlint's `with N rules` count, which grows on every bundled oxlint upgrade (the legacy suite masked it the same way).
1 parent 9d3e77b commit e40e85f
49 files changed
Lines changed: 239 additions & 110 deletions
File tree
- crates/vite_cli_snapshots/tests/cli_snapshots
- fixtures
- lint_ignore_patterns
- snapshots
- src
- ignored
- lint_unmatched_pattern
- snapshots
- lint_vite_config_rules
- snapshots
- src
- lint_vite_plus_imports_nuxt
- snapshots
- src
- lint_vite_plus_imports
- snapshots
- src
- oxlint_typeaware
- snapshots
- src
- plain_terminal_ui_nested/snapshots
- vite_plugins_run_lint/snapshots
- vite_plugins_skip_on_lint/snapshots
- vp_lint_cache/snapshots
- workspace_lint_subpackage/snapshots
- packages/cli/snap-tests
- lint-ignore-patterns
- lint-unmatched-pattern
- lint-vite-config-rules
- lint-vite-plus-imports-nuxt
- lint-vite-plus-imports
- oxlint-typeaware
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: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments