mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[tests] Pass in builder to runBuildLambda() (#9262)
Removes the need for `next`/`static-build` to be present in the root `package.json` file.
This commit is contained in:
@@ -6,10 +6,13 @@ import type { Context } from '../types';
|
||||
import { duplicateWithConfig } from '../utils';
|
||||
import fs from 'fs-extra';
|
||||
import path from 'path';
|
||||
import runBuildLambda from '../../../../test/lib/run-build-lambda';
|
||||
import * as builder from '../../';
|
||||
import { createRunBuildLambda } from '../../../../test/lib/run-build-lambda';
|
||||
import { EdgeFunction, Files, streamToBuffer } from '@vercel/build-utils';
|
||||
import { createHash } from 'crypto';
|
||||
|
||||
const runBuildLambda = createRunBuildLambda(builder);
|
||||
|
||||
const SIMPLE_PROJECT = path.resolve(
|
||||
__dirname,
|
||||
'..',
|
||||
|
||||
Reference in New Issue
Block a user