Files
vercel/utils/chunk-tests-18.js
Nathan Rajlich 139e8cdb17 [node] Use vitest for unit tests (#11631)
Similar to #11302, but for the `@vercel/node` package.
2024-05-23 18:20:18 +00:00

47 lines
1.2 KiB
JavaScript
Vendored

async function main() {
try {
console.log(
JSON.stringify([
{
runner: 'ubuntu-latest',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'vitest-unit',
testScript: 'vitest-unit-run',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
{
runner: 'macos-14',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'vitest-unit',
testScript: 'vitest-unit-run',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
{
runner: 'windows-latest',
packagePath: 'packages/node',
packageName: '@vercel/node',
scriptName: 'vitest-unit',
testScript: 'vitest-unit-run',
testPaths: ['test/unit/dev.test.ts'],
chunkNumber: 1,
allChunksLength: 1,
},
])
);
} catch (e) {
console.error(e);
process.exitCode = 1;
}
}
// @ts-ignore
if (module === require.main || !module.parent) {
main();
}