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
test('show warning message to remove old plugin',async()=>{
565
+
isOldPluginInstalled.mockImplementation(()=>{
566
+
returntrue
567
+
})
568
+
constmockStatusFunc=jest.fn()
569
+
570
+
awaitplugin.onPostBuild({
571
+
...defaultArgs,
572
+
utils: { ...utils,status: {show: mockStatusFunc}}
573
+
})
574
+
575
+
expect(mockStatusFunc).toHaveBeenCalledWith({"summary": "Please remove @netlify/plugin-nextjs from your site. It is no longer required and will prevent you using new features."})
576
+
577
+
})
578
+
579
+
test('does not show warning message to remove old plugin',async()=>{
expect(mockStatusFunc).not.toHaveBeenCalledWith({"summary": "Please remove @netlify/plugin-nextjs from your site. It is no longer required and will prevent you using new features."})
0 commit comments