mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[all] Updated builders to version: 3 (#3273)
* [now-node] Use builder version 3 * [now-cgi] Use builder version 3 * [now-go] Use builder version 3 * [now-python] Use builder version 3 * [now-ruby] Use builder version 3 * Adjust docs * [now-ruby] Remove unused import * Temp. test in iad1 * Revert "Temp. test in iad1" This reverts commit 4c495baa5888dda5ae8f184f679613e91ab7268c. * [now-cli] Adjust `now dev` for builder version 3 * [now-build-utils] Do not allow non Community Runtimes * Temp. Force Build in iad1 * Update DEVELOPING_A_RUNTIME.md Co-Authored-By: Steven <steven@ceriously.com> * Update docs * Update test/lib/deployment/now-deploy.js Co-Authored-By: Steven <steven@ceriously.com> * Remove temp. iad1 check * Check memory and maxDuration * Use memory for Lambda * Only cast once * Skip tests
This commit is contained in:
12
packages/now-build-utils/test/unit.test.js
vendored
12
packages/now-build-utils/test/unit.test.js
vendored
@@ -622,6 +622,18 @@ describe('Test `detectBuilders`', () => {
|
||||
expect(errors).toBeDefined();
|
||||
expect(errors[0].code).toBe('unused_function');
|
||||
});
|
||||
|
||||
it('Do not allow function non Community Runtimes', async () => {
|
||||
const functions = {
|
||||
'api/test.js': { memory: 128, runtime: '@now/node@1.0.0' },
|
||||
};
|
||||
const files = ['api/test.js'];
|
||||
|
||||
const { errors } = await detectBuilders(files, null, { functions });
|
||||
|
||||
expect(errors).toBeDefined();
|
||||
expect(errors[0].code).toBe('invalid_function_runtime');
|
||||
});
|
||||
});
|
||||
|
||||
it('Test `detectRoutes`', async () => {
|
||||
|
||||
Reference in New Issue
Block a user