mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
259a539d7d
* Remove legacy.astroFlavoredMarkdown * update vue mdx test * Add a changeset
25 lines
660 B
JavaScript
25 lines
660 B
JavaScript
import { prepareTestFactory } from './shared-component-tests.js';
|
|
|
|
const { test, createTests } = prepareTestFactory({ root: './fixtures/vue-component/' });
|
|
|
|
const config = {
|
|
componentFilePath: './src/components/VueComponent.vue',
|
|
counterCssFilePath: './src/components/Counter.vue',
|
|
counterComponentFilePath: './src/components/Counter.vue',
|
|
};
|
|
|
|
test.describe('Vue components in Astro files', () => {
|
|
createTests({
|
|
...config,
|
|
pageUrl: '/',
|
|
pageSourceFilePath: './src/pages/index.astro',
|
|
});
|
|
});
|
|
|
|
test.describe('Vue components in MDX files', () => {
|
|
createTests({
|
|
...config,
|
|
pageUrl: '/mdx/',
|
|
pageSourceFilePath: './src/pages/mdx.mdx',
|
|
});
|
|
});
|