mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 04:22:07 +00:00
[tests] re-chunk example tests (#9792)
It turns out that these do take a long time to run when not cached. We do want these chunks.
This commit is contained in:
9
utils/chunk-tests.js
vendored
9
utils/chunk-tests.js
vendored
@@ -16,17 +16,17 @@ const runnersMap = new Map([
|
||||
['test-dev', { min: 1, max: 5, runners: ['ubuntu-latest', 'macos-latest'] }],
|
||||
]);
|
||||
|
||||
const optionsOverrides = {
|
||||
examples: { min: 1, max: 1 },
|
||||
const packageOptionsOverrides = {
|
||||
// 'some-package': { min: 1, max: 1 },
|
||||
};
|
||||
|
||||
function getRunnerOptions(scriptName, packageName) {
|
||||
let runnerOptions = runnersMap.get(scriptName);
|
||||
if (optionsOverrides[packageName]) {
|
||||
if (packageOptionsOverrides[packageName]) {
|
||||
runnerOptions = Object.assign(
|
||||
{},
|
||||
runnerOptions,
|
||||
optionsOverrides[packageName]
|
||||
packageOptionsOverrides[packageName]
|
||||
);
|
||||
}
|
||||
return (
|
||||
@@ -183,6 +183,7 @@ async function main() {
|
||||
}
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
if (module === require.main || !module.parent) {
|
||||
main();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user