astro-reactive-form/packages/validator/test/Validator.astro.test.ts
Fazza Razaq Amiarso 0853ca3b8f
fix: extends timeout for timed out test (#208)
* 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
2022-11-25 14:37:23 +01:00

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 }
);
});
});