fix assertions for no tests found

This commit is contained in:
Simon Knott 2024-08-19 08:58:30 +02:00
parent 75f39c2d96
commit 355fa044c9
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -256,10 +256,9 @@ test('should suppport component tests', async ({ runInlineTest, git, writeFiles
const result = await runInlineTest({}, { 'workers': 1, 'only-changed': true });
expect(result.exitCode).toBe(1);
expect(result.exitCode).toBe(0);
expect(result.passed).toBe(0);
expect(result.failed).toBe(0);
expect(result.output).toContain('No tests found');
const result2 = await runInlineTest({
'src/button2.test.tsx': `