test more complex dependency graph

This commit is contained in:
Simon Knott 2024-07-17 12:16:55 +02:00
parent bed44661e1
commit 0cbfd3470a
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -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";
`,
});