Broken out of https://github.com/microsoft/playwright/pull/31727 as per
@dgozman's
[request](https://github.com/microsoft/playwright/pull/31727#discussion_r1685793229).
The PR goal is to remove the `suite` argument from the Component
testing's Vite Plugin. `suite` is used to enrich Vite's dependency graph
with information about dependencies between test suites and helper
files. It essentially merges the Vite graph with the
`compilationCache.ts > fileDependencies` graph, and then writes the
result back into `compilationCache.ts > externalDependencies`.
By refactoring this to make the connection on the reading end in
`collectAffectedTestFiles`, we can drop the `suite` parameter.
We didn't yet have a test that depended on the dependency graph being
connected correctly between `fileDependencies` and
`externalDepedencies`, so I've [extended an existing
test](
|
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .eslintrc.js | ||
| .npmignore | ||
| index.d.ts | ||
| index.js | ||
| package.json | ||
| README.md | ||
BEWARE This package is EXPERIMENTAL and does not respect semver.
Read more at https://playwright.dev/docs/test-components