From 0cbfd3470af4ad54777677f1172b615b88c30a15 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Wed, 17 Jul 2024 12:16:55 +0200 Subject: [PATCH] test more complex dependency graph --- tests/playwright-test/only-changed.spec.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/playwright-test/only-changed.spec.ts b/tests/playwright-test/only-changed.spec.ts index ad8b23c5e1..112659a41f 100644 --- a/tests/playwright-test/only-changed.spec.ts +++ b/tests/playwright-test/only-changed.spec.ts @@ -36,7 +36,13 @@ const test = baseTest.extend({ test('fails', () => { expect(question).toBe(answer); }); `, 'utils.ts': ` + export * from './answer'; + export * from './question'; + `, + 'answer.ts': ` export const answer = 42; + `, + 'question.ts': ` export const question = "???"; `, }); @@ -120,8 +126,7 @@ test.describe('should be smart about PR base reference from CI', () => { test('should understand dependency structure', async ({ runInlineTest, setupRepository, writeFiles }) => { await setupRepository(); await writeFiles({ - 'utils.ts': ` - export const answer = 42; + 'question.ts': ` export const question = "what is the answer to life the universe and everything"; `, });