Files
vercel/packages/fs-detectors/test/integration.test.ts
Nathan Rajlich a5af8381ce [fs-detectors] Add test-e2e script (#10103)
Seems we have not been running the `fs-detectors` integration tests.
2023-06-14 19:20:20 +00:00

21 lines
607 B
TypeScript
Vendored

import { join } from 'path';
import {
testDeployment,
// @ts-ignore
} from '../../../test/lib/deployment/test-deployment';
jest.setTimeout(4 * 60 * 1000);
it('Test `detectBuilders` and `detectRoutes`', async () => {
const fixture = join(__dirname, 'fixtures', '01-zero-config-api');
const deployment = await testDeployment(fixture);
expect(deployment).toBeDefined();
});
it('Test `detectBuilders` with `index` files', async () => {
const fixture = join(__dirname, 'fixtures', '02-zero-config-api');
const deployment = await testDeployment(fixture);
expect(deployment).toBeDefined();
});