mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 12:57:46 +00:00
29 lines
852 B
TypeScript
Vendored
29 lines
852 B
TypeScript
Vendored
const fs = require('fs');
|
|
const { join } = require('path');
|
|
import { vi, it, expect } from 'vitest';
|
|
|
|
const {
|
|
testDeployment,
|
|
} = require('../../../test/lib/deployment/test-deployment.js');
|
|
|
|
vi.setConfig({ testTimeout: 12 * 60 * 1000 });
|
|
|
|
const fixturesPath = join(__dirname, 'fixtures-vite');
|
|
const exampleAbsolute = (name: string) =>
|
|
join(__dirname, '..', '..', '..', 'examples', name);
|
|
|
|
// eslint-disable-next-line no-restricted-syntax
|
|
for (const fixture of fs.readdirSync(fixturesPath)) {
|
|
// eslint-disable-next-line no-loop-func
|
|
it(`should build ${fixture}`, async () => {
|
|
await expect(
|
|
testDeployment(join(fixturesPath, fixture))
|
|
).resolves.toBeDefined();
|
|
});
|
|
}
|
|
|
|
it(`should build remix example`, async () => {
|
|
const example = exampleAbsolute('remix');
|
|
await expect(testDeployment(example)).resolves.toBeDefined();
|
|
});
|