mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
* add prettier and eslint on root * remove eslint from now-cli * adjust root package.json * adjust eslintignore * adjust now-cli rules * remove @zeit/git-hooks in packages * adjust now-client eslint config * add lint-staged and hook on pre-commit * add pre-commit script * replace @zeit/git-hooks with husky * remove unnecessary script * fix eslint errors * trigger tests * fix fixable errors * fix fixable errors (bis) * revert two changes
45 lines
1.0 KiB
JavaScript
45 lines
1.0 KiB
JavaScript
const path = require('path');
|
|
const runBuildLambda = require('../../lib/run-build-lambda');
|
|
|
|
const TWO_MINUTES = 120000;
|
|
|
|
function runBuildForFolder(folder) {
|
|
return runBuildLambda(path.join(__dirname, folder));
|
|
}
|
|
|
|
it(
|
|
'Should build the airtable folder',
|
|
async () => {
|
|
const { buildResult } = await runBuildForFolder('airtable');
|
|
expect(buildResult.output['index.js']).toBeDefined();
|
|
},
|
|
TWO_MINUTES
|
|
);
|
|
|
|
it(
|
|
'Should build the aws-sdk folder',
|
|
async () => {
|
|
const { buildResult } = await runBuildForFolder('aws-sdk');
|
|
expect(buildResult.output['index.js']).toBeDefined();
|
|
},
|
|
TWO_MINUTES
|
|
);
|
|
|
|
it(
|
|
'Should build the axios folder',
|
|
async () => {
|
|
const { buildResult } = await runBuildForFolder('axios');
|
|
expect(buildResult.output['index.js']).toBeDefined();
|
|
},
|
|
TWO_MINUTES
|
|
);
|
|
|
|
it(
|
|
'Should build the mongoose folder',
|
|
async () => {
|
|
const { buildResult } = await runBuildForFolder('mongoose');
|
|
expect(buildResult.output['index.js']).toBeDefined();
|
|
},
|
|
TWO_MINUTES
|
|
);
|