summaryrefslogtreecommitdiff
path: root/packages/astro/e2e/react-component.test.js
blob: 05f8c1a878c772635bb76bb200756deeb00cbfa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { prepareTestFactory } from './shared-component-tests.js';

const { test, createTests } = prepareTestFactory({ root: './fixtures/react-component/' });

test.describe('React components in Astro files', () => {
	createTests({
		pageUrl: '/',
		pageSourceFilePath: './src/pages/index.astro',
		componentFilePath: './src/components/JSXComponent.jsx',
	});
});

test.describe('React components in Markdown files', () => {
	createTests({
		pageUrl: '/markdown/',
		pageSourceFilePath: './src/pages/markdown.md',
		componentFilePath: './src/components/JSXComponent.jsx',
	});
});