
* fix: extends timeout for timed out test * fix: add dependent script to turbo test * fix: disable threading for test * fix: add timeout to vitest config * chore: remove test-ci script * fix: extends timeout to validator vitest config * chore: conditionally disabling vitest threading on CI
21 lines
494 B
TypeScript
21 lines
494 B
TypeScript
import { describe, beforeEach, it, expect } from 'vitest';
|
|
import { getComponentOutput } from 'astro-component-tester';
|
|
|
|
describe('Example Tests', () => {
|
|
let component;
|
|
|
|
beforeEach(() => {
|
|
component = undefined;
|
|
});
|
|
|
|
describe('Component test', async () => {
|
|
it(
|
|
'example component should not be empty',
|
|
async () => {
|
|
component = await getComponentOutput('./Validator.astro');
|
|
expect(component.html).not.to.equal('\n');
|
|
},
|
|
{ timeout: 10000, retry: 3 }
|
|
);
|
|
});
|
|
});
|