Skip to content

test(ts-plugin): flatten e2e-test directory#383

Merged
mizdra merged 2 commits into
mainfrom
test/e2e-test-flatten
May 5, 2026
Merged

test(ts-plugin): flatten e2e-test directory#383
mizdra merged 2 commits into
mainfrom
test/e2e-test-flatten

Conversation

@mizdra
Copy link
Copy Markdown
Owner

@mizdra mizdra commented May 5, 2026

Summary

Flatten the packages/ts-plugin/e2e-test/ directory by removing the feature/ and regression/ subdirectories, placing all test files at the e2e-test root. Also rename a few non-feature test files for clarity.

This completes the e2e test reorganization started in #378 and continued through #382.

What's new

  • Removed feature/ directory: 9 test files moved to e2e-test root.
  • Removed regression/ directory: 1 test file (pure-css-file.test.ts) moved to e2e-test root and renamed to non-module-css-file.test.ts.
  • Renamed non-feature test files for clarity:
    • disabled.test.ts -> enabled.test.ts
    • file-operation.test.ts -> file-events.test.ts
    • invalid-syntax.test.ts -> invalid-css-syntax.test.ts
    • pure-css-file.test.ts -> non-module-css-file.test.ts

The directory structure is now flat: each test file's name is self-descriptive and there is no taxonomy to learn before adding a new test.

Rationale

Previously, the feature/ directory grouped tsserver-API-driven tests and regression/ held a single issue-specific test, while several "cross-cutting" tests (config, parser, runtime events) lived at the root. There was no natural directory name for those cross-cutting tests, and a single-file regression/ directory provided no organizational value. A flat layout removes the naming problem entirely and makes file discovery trivial: if you want a test, look at the filename.

Naming refinements

  • disabled -> enabled: neutral framing that also fits future tests for enabled: true.
  • file-operation -> file-events: replace vague "operation" with the actual subject (filesystem events at runtime).
  • invalid-syntax -> invalid-css-syntax: make explicit which language's syntax is meant.
  • pure-css-file -> non-module-css-file: literal description of the file kind (not a *.module.css) instead of the ambiguous "pure CSS".

Commits

  1. Flatten feature/ and regression/ (move only; import paths adjusted).
  2. Rename the 4 non-feature test files.

Test plan

  • vp test --project e2e -- 15 files / 135 tests pass
  • vp check -- format, lint, type all pass

mizdra added 2 commits May 5, 2026 16:15
…regression/

Move all test files from feature/ and regression/ subdirectories into
e2e-test/ root. Adjust import paths accordingly. File names are
preserved in this commit; renames will follow in a subsequent commit.
- disabled.test.ts -> enabled.test.ts: neutral framing that also fits
  future tests for `enabled: true`
- file-operation.test.ts -> file-events.test.ts: replace vague
  "operation" with the actual subject (filesystem events at runtime)
- invalid-syntax.test.ts -> invalid-css-syntax.test.ts: make explicit
  which language's syntax is meant
- pure-css-file.test.ts -> non-module-css-file.test.ts: literal
  description of the file kind (not a `*.module.css`) instead of the
  ambiguous "pure CSS"
@mizdra mizdra added the Type: Testing Adding missing tests or correcting existing tests label May 5, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 5, 2026

⚠️ No Changeset found

Latest commit: 50e60a0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mizdra mizdra merged commit be859cc into main May 5, 2026
20 checks passed
@mizdra mizdra deleted the test/e2e-test-flatten branch May 5, 2026 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Testing Adding missing tests or correcting existing tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant