astro-reactive-form/packages/validator/test/Validator.astro.test.ts
Fazza Razaq Amiarso 59d76181db
test(migrate): migrate test tooling from chai + mocha to vitest (#203)
* test(migrate): migrate test tooling from chai + mocha to vitest

* fix: fix wrong vitest cli command for watch
2022-11-21 13:15:58 +01:00

17 lines
448 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');
});
});
});