Skip to content

Commit f4c036d

Browse files
committed
fix: update test
1 parent c32ef8c commit f4c036d

File tree

3 files changed

+41
-34
lines changed

3 files changed

+41
-34
lines changed

package-lock.json

Lines changed: 36 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"folder-hash": "^4.0.0",
9494
"husky": "^4.3.0",
9595
"jest": "^27.0.0",
96-
"netlify-cli": "^5.4.9",
96+
"netlify-cli": "^5.4.11",
9797
"next": "^11.0.0",
9898
"path-exists": "^4.0.0",
9999
"prettier": "^2.1.2",

test/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,13 @@ describe('onBuild()', () => {
323323
test('copy files to the functions directory', async () => {
324324
await useFixture('functions_copy_files')
325325
await moveNextDist()
326+
327+
const INTERNAL_FUNCTIONS_SRC = path.resolve(`.netlify/internal-functions`)
328+
326329
await plugin.onBuild({
327330
netlifyConfig,
328331
packageJson: DUMMY_PACKAGE_JSON,
329-
constants: {},
332+
constants: { INTERNAL_FUNCTIONS_SRC },
330333
utils,
331334
})
332335

0 commit comments

Comments
 (0)