Skip to content

Commit f066c83

Browse files
committed
fix: update test
1 parent 9f09912 commit f066c83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ afterEach(async () => {
8787
})
8888

8989
const DUMMY_PACKAGE_JSON = { name: 'dummy', version: '1.0.0', scripts: { build: 'next build' } }
90-
const netlifyConfig = { build: { command: 'npm run build' } }
90+
const netlifyConfig = { build: { command: 'npm run build' }, functions: { '*': {} } }
9191

9292
describe('preBuild()', () => {
9393
test('fails if the build version is too old', () => {
@@ -307,7 +307,7 @@ describe('onBuild()', () => {
307307
await moveNextDist()
308308
const PUBLISH_DIR = 'publish'
309309
await plugin.onBuild({
310-
netlifyConfig: { build: { publish: path.resolve(PUBLISH_DIR), command: 'next build' } },
310+
netlifyConfig: { ...netlifyConfig, build: { publish: path.resolve(PUBLISH_DIR), command: 'next build' } },
311311
packageJson: DUMMY_PACKAGE_JSON,
312312
constants: {
313313
PUBLISH_DIR,

0 commit comments

Comments
 (0)