aboutsummaryrefslogtreecommitdiff
path: root/packages/db/test/fixtures/integrations/integration/index.ts
blob: b249cc253853b8c50851dfdfc1c38f062a9cce04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { defineDbIntegration } from '@astrojs/db/utils';

export default function testIntegration() {
	return defineDbIntegration({
		name: 'db-test-integration',
		hooks: {
			'astro:db:setup'({ extendDb }) {
				extendDb({
					configEntrypoint: './integration/config.ts',
					seedEntrypoint: './integration/seed.ts',
				});
			},
		},
	});
}