From a11e7fb071dcc8736f69f1bb29ced3ae487cd438 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 18 Jul 2024 13:00:12 +0200 Subject: [PATCH] write down plan --- tests/playwright-test/only-changed.spec.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/playwright-test/only-changed.spec.ts b/tests/playwright-test/only-changed.spec.ts index b78e6dab16..03546f4c16 100644 --- a/tests/playwright-test/only-changed.spec.ts +++ b/tests/playwright-test/only-changed.spec.ts @@ -203,6 +203,13 @@ test.only('should suppport component tests', async ({ runInlineTest, setupReposi git('commit -am "update button2 test"'); + // this doesn't work. we do know about dependencies in the Vite bundle, + // but only after the Vite build ran. + // Right now, --only-changed is interpreted *before* Vite build. + // We can either move the build (risky, big architecture change) + // or re-apply --only-changed after the build. + // Let's try the latter. + const result3 = await runInlineTest({ 'src/button.tsx': ` export const Button = () => ;