mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-08 21:07:46 +00:00
[next] Ensure test-next-local is run in CI (#7868)
* Ensure test-next-local is run in CI * update turbo config * update timeout * update flakey test
This commit is contained in:
@@ -5,6 +5,8 @@ const fs = require('fs-extra');
|
||||
|
||||
const runBuildLambda = require('../../../../test/lib/run-build-lambda');
|
||||
|
||||
jest.setTimeout(360000);
|
||||
|
||||
it('should show error from basePath with legacy monorepo build', async () => {
|
||||
let error;
|
||||
|
||||
@@ -694,7 +696,6 @@ it('Should not exceed function limit for large dependencies (shared lambda)', as
|
||||
});
|
||||
|
||||
it('Should provide lambda info when limit is hit (server build)', async () => {
|
||||
let error;
|
||||
let logs = '';
|
||||
|
||||
const origLog = console.log;
|
||||
@@ -709,14 +710,13 @@ it('Should provide lambda info when limit is hit (server build)', async () => {
|
||||
path.join(__dirname, 'test-limit-exceeded-server-build')
|
||||
);
|
||||
} catch (err) {
|
||||
error = err;
|
||||
console.error(err);
|
||||
}
|
||||
console.log = origLog;
|
||||
|
||||
expect(logs).toContain(
|
||||
'Max serverless function size was exceeded for 1 function'
|
||||
);
|
||||
expect(error).toBeDefined();
|
||||
expect(logs).toContain(
|
||||
'Max serverless function size of 50 MB compressed or 250 MB uncompressed reached'
|
||||
);
|
||||
@@ -733,7 +733,6 @@ it('Should provide lambda info when limit is hit (server build)', async () => {
|
||||
});
|
||||
|
||||
it('Should provide lambda info when limit is hit (shared lambdas)', async () => {
|
||||
let error;
|
||||
let logs = '';
|
||||
|
||||
const origLog = console.log;
|
||||
@@ -748,14 +747,13 @@ it('Should provide lambda info when limit is hit (shared lambdas)', async () =>
|
||||
path.join(__dirname, 'test-limit-exceeded-shared-lambdas')
|
||||
);
|
||||
} catch (err) {
|
||||
error = err;
|
||||
console.error(err);
|
||||
}
|
||||
console.log = origLog;
|
||||
|
||||
expect(logs).toContain(
|
||||
'Max serverless function size was exceeded for 1 function'
|
||||
);
|
||||
expect(error).toBeDefined();
|
||||
expect(logs).toContain(
|
||||
'Max serverless function size of 50 MB compressed or 250 MB uncompressed reached'
|
||||
);
|
||||
@@ -770,7 +768,6 @@ it('Should provide lambda info when limit is hit (shared lambdas)', async () =>
|
||||
});
|
||||
|
||||
it('Should provide lambda info when limit is hit for internal pages (server build)', async () => {
|
||||
let error;
|
||||
let logs = '';
|
||||
|
||||
const origLog = console.log;
|
||||
@@ -785,11 +782,10 @@ it('Should provide lambda info when limit is hit for internal pages (server buil
|
||||
path.join(__dirname, 'test-limit-exceeded-internal-files-server-build')
|
||||
);
|
||||
} catch (err) {
|
||||
error = err;
|
||||
console.error(err);
|
||||
}
|
||||
console.log = origLog;
|
||||
|
||||
expect(error).toBeDefined();
|
||||
expect(logs).toContain(
|
||||
'Max serverless function size of 50 MB compressed or 250 MB uncompressed reached'
|
||||
);
|
||||
|
||||
@@ -17,6 +17,8 @@ const SIMPLE_PROJECT = path.resolve(
|
||||
'00-middleware'
|
||||
);
|
||||
|
||||
jest.setTimeout(360000);
|
||||
|
||||
describe('Middleware simple project', () => {
|
||||
const ctx: Context = {};
|
||||
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
"dependsOn": ["build"],
|
||||
"outputs": []
|
||||
},
|
||||
"test-next-local": {
|
||||
"dependsOn": ["build"],
|
||||
"outputs": []
|
||||
},
|
||||
"test": {
|
||||
"dependsOn": ["build"],
|
||||
"outputs": []
|
||||
|
||||
1
utils/chunk-tests.js
vendored
1
utils/chunk-tests.js
vendored
@@ -5,6 +5,7 @@ const NUMBER_OF_CHUNKS = 5;
|
||||
const MINIMUM_PER_CHUNK = 1;
|
||||
const runnersMap = new Map([
|
||||
['test-integration-once', ['ubuntu-latest']],
|
||||
['test-next-local', ['ubuntu-latest']],
|
||||
['test-integration-dev', ['ubuntu-latest', 'macos-latest']],
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user