You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`You must designate a functions directory named "out_functions" in your netlify.toml or in your app's build settings on Netlify. See docs for more info: https://docs.netlify.com/functions/configure-and-deploy/#configure-the-functions-folder`,
53
-
)
54
-
}
55
-
56
47
constnextConfigPath=awaitfindUp('next.config.js')
57
48
if(nextConfigPath!==undefined){
58
49
// If the next config exists, fail build if target isnt in acceptableTargets
Copy file name to clipboardExpand all lines: test/index.js
-13
Original file line number
Diff line number
Diff line change
@@ -93,19 +93,6 @@ describe('preBuild()', () => {
93
93
).rejects.toThrow(`Could not find a package.json for this project`)
94
94
})
95
95
96
-
test('fail build if the app has no functions directory defined',async()=>{
97
-
awaitexpect(
98
-
plugin.onPreBuild({
99
-
netlifyConfig: {},
100
-
packageJson: DUMMY_PACKAGE_JSON,
101
-
utils,
102
-
constants: {},
103
-
}),
104
-
).rejects.toThrow(
105
-
`You must designate a functions directory named "out_functions" in your netlify.toml or in your app's build settings on Netlify. See docs for more info: https://docs.netlify.com/functions/configure-and-deploy/#configure-the-functions-folder`,
106
-
)
107
-
})
108
-
109
96
test('create next.config.js with correct target if file does not exist',async()=>{
0 commit comments