
* test(migrate): migrate test tooling from chai + mocha to vitest * fix: fix wrong vitest cli command for watch
17 lines
448 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|