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
).rejects.toThrow(`You set your publish directory to "${wrongPublishDir}". Your publish directory should be set to your distDir (defaults to .next or is configured in your next.config.js). If your site is rooted in a subdirectory, your publish directory should be {yourSiteRoot}/{distDir}.`)
246
246
})
247
247
248
-
test('fail build if no publish dir',async()=>{
248
+
test('fail build if no publish dir',async()=>{
249
249
expect(
250
250
plugin.onPreBuild({
251
251
netlifyConfig: {build: {command: 'npm run build',publish: null}},
).rejects.toThrow('You set your publish directory to "null". Your publish directory should be set to your distDir (defaults to .next or is configured in your next.config.js). If your site is rooted in a subdirectory, your publish directory should be {yourSiteRoot}/{distDir}.')
257
257
})
258
258
259
-
// test('restores cache with right paths', async () => {
0 commit comments