fix assertions for no tests found
This commit is contained in:
parent
75f39c2d96
commit
355fa044c9
|
|
@ -256,10 +256,9 @@ test('should suppport component tests', async ({ runInlineTest, git, writeFiles
|
||||||
|
|
||||||
const result = await runInlineTest({}, { 'workers': 1, 'only-changed': true });
|
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.passed).toBe(0);
|
||||||
expect(result.failed).toBe(0);
|
expect(result.failed).toBe(0);
|
||||||
expect(result.output).toContain('No tests found');
|
|
||||||
|
|
||||||
const result2 = await runInlineTest({
|
const result2 = await runInlineTest({
|
||||||
'src/button2.test.tsx': `
|
'src/button2.test.tsx': `
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue