astro/packages/astro/e2e/solid-component.test.js
Matthew Phillips 259a539d7d
Remove legacy.astroFlavoredMarkdown (#5771)
* Remove legacy.astroFlavoredMarkdown

* update vue mdx test

* Add a changeset
2023-01-05 16:20:40 -05:00

24 lines
615 B
JavaScript

import { prepareTestFactory } from './shared-component-tests.js';
const { test, createTests } = prepareTestFactory({ root: './fixtures/solid-component/' });
const config = {
componentFilePath: './src/components/SolidComponent.jsx',
counterComponentFilePath: './src/components/Counter.jsx',
};
test.describe('Solid components in Astro files', () => {
createTests({
...config,
pageUrl: '/',
pageSourceFilePath: './src/pages/index.astro',
});
});
test.describe('Solid components in MDX files', () => {
createTests({
...config,
pageUrl: '/mdx/',
pageSourceFilePath: './src/pages/mdx.mdx',
});
});