playwright/packages/playwright-ct-core/src
Simon Knott 1408a45595
chore(ct): remove suite dependency by connecting dependency graphs at read time, not write time (#31794)
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](53a539938b)
to capture that.
2024-07-23 10:19:58 +02:00
..
injected fix(ct): fix component.d.ts core types (#29463) 2024-02-12 22:37:31 +01:00
cliOverrides.ts chore(ct): remove suite dependency by connecting dependency graphs at read time, not write time (#31794) 2024-07-23 10:19:58 +02:00
DEPS.list chore(ct): use sticky test server if available (#29136) 2024-01-25 08:36:13 -08:00
devServer.ts chore: move dev server to config-based framework extensibility (#30234) 2024-04-05 08:39:51 -07:00
mount.ts feat(ct): experimental route fixture (#31554) 2024-07-06 09:35:20 -07:00
program.ts chore: move dev server to config-based framework extensibility (#30234) 2024-04-05 08:39:51 -07:00
route.ts feat(ct): experimental route fixture (#31554) 2024-07-06 09:35:20 -07:00
tsxTransform.ts fix(ct): ct ID clash on similar imports (#30108) 2024-03-25 23:50:45 +01:00
vitePlugin.ts chore(ct): remove suite dependency by connecting dependency graphs at read time, not write time (#31794) 2024-07-23 10:19:58 +02:00
viteUtils.ts fix(ct): allow importing components from node_modules (#30493) 2024-04-24 12:32:28 -07:00