playwright/packages/playwright-ct-core
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
..
src chore(ct): remove suite dependency by connecting dependency graphs at read time, not write time (#31794) 2024-07-23 10:19:58 +02:00
types feat(ct): resolve hooksConfig import refs (#31024) 2024-05-28 12:29:52 -07:00
.eslintrc.js chore: strengthen linting (#29669) 2024-02-26 16:52:28 -08:00
.npmignore chore: pass the private data to the runner via config (#29467) 2024-02-13 09:34:03 -08:00
index.d.ts fix(ct): import ct* flavour types from ct-core and then from pwt (#31642) 2024-07-16 19:32:51 +02:00
index.js chore: move dev server to config-based framework extensibility (#30234) 2024-04-05 08:39:51 -07:00
package.json chore: mark v1.46.0-next (#31324) 2024-06-14 18:22:42 -07:00
README.md chore: introduce ct-core to hard-depend on vite (#22437) 2023-04-17 16:19:21 -07:00

BEWARE This package is EXPERIMENTAL and does not respect semver.

Read more at https://playwright.dev/docs/test-components