Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump styled-jsx from 3.3.2 to 3.4.4 #21650

Closed
wants to merge 3 commits into from
Closed

build(deps): bump styled-jsx from 3.3.2 to 3.4.4 #21650

wants to merge 3 commits into from

Conversation

theoludwig
Copy link
Contributor

@theoludwig theoludwig commented Jan 29, 2021

Update styled-jsx to latest version, so we benefit from 3.3.3 bug fix and builtin TypeScript typings from 3.4.1.
To update styled-jsx, I ran this command : yarn upgrade [email protected].
I also updated occurence of zeit/styled-jsx to vercel/styled-jsx.

EDIT: It seems like, the CI is failing, and as we can see, when I ran the yarn command, it also updated babel plugins, not only styled-jsx, and there is something related with babel in [email protected], is it related with the CI faling ?
Maybe it has something to do with this PR : vercel/styled-jsx#684
I would appreciate some help, to fix the CI issues, thanks!

@ijjk
Copy link
Member

ijjk commented Jan 29, 2021

Failing test suites

Commit: 45a3998

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/amphtml/test/index.test.js

  • AMP Usage > production mode > should not contain missing files warning
  • AMP Usage > production mode > With AMP context > should render the normal page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render nested normal page with AMP hook
  • AMP Usage > production mode > With AMP context > should render nested AMP page with AMP hook
  • AMP Usage > production mode > With basic AMP usage > should render the page as valid AMP
  • AMP Usage > production mode > With basic AMP usage > should render the page without leaving render target
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only with config exported after declaration
  • AMP Usage > production mode > With basic AMP usage > should add link preload for amp script
  • AMP Usage > production mode > With basic AMP usage > should drop custom scripts
  • AMP Usage > production mode > With basic AMP usage > should not drop custom amp scripts
  • AMP Usage > production mode > With basic AMP usage > should optimize clean
  • AMP Usage > production mode > With basic AMP usage > should auto import extensions
  • AMP Usage > production mode > With basic usage > should render the page
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml
  • AMP Usage > production mode > canonical amphtml > should render amphtml from provided rel link
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml with existing query
  • AMP Usage > production mode > canonical amphtml > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > canonical amphtml > should render a canonical regardless of amp-only status (explicit)
  • AMP Usage > production mode > canonical amphtml > should not render amphtml link tag with no AMP page
  • AMP Usage > production mode > canonical amphtml > should remove conflicting amp tags
  • AMP Usage > production mode > canonical amphtml > should allow manually setting canonical
  • AMP Usage > production mode > canonical amphtml > should allow manually setting amphtml rel
  • AMP Usage > production mode > combined styles > should combine style tags
  • AMP Usage > production mode > combined styles > should remove sourceMaps from styles
Expand output

● AMP Usage › production mode › should not contain missing files warning

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic usage › should render the page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page as valid AMP

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page without leaving render target

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only with config exported after declaration

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should add link preload for amp script

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should drop custom scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not drop custom amp scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should optimize clean

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should auto import extensions

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the normal page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested normal page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested AMP page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render amphtml from provided rel link

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml with existing query

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render a canonical regardless of amp-only status (explicit)

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should not render amphtml link tag with no AMP page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should remove conflicting amp tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting canonical

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting amphtml rel

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should combine style tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should remove sourceMaps from styles

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml/test/index.test.js:50:20

test/integration/export/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > should honor exportTrailingSlash for 404 page
  • Static Export > should handle trailing slash in getStaticPaths
  • Static Export > should only output 404.html without exportTrailingSlash
  • Static Export > should not duplicate /index with exportTrailingSlash
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add any slash on hash Link
  • Static Export > Render via browser > should preserve hash symbol on empty hash Link
  • Static Export > Render via browser > should preserve question mark on empty query Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › should honor exportTrailingSlash for 404 page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › should handle trailing slash in getStaticPaths

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › should only output 404.html without exportTrailingSlash

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › should not duplicate /index with exportTrailingSlash

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add any slash on hash Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should preserve hash symbol on empty hash Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should preserve question mark on empty query Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/export/test/index.test.js:85:7

test/integration/export-serverless/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/export-serverless/test/index.test.js:87:7

test/integration/image-component/base-path/test/index.test.js

  • Image Component basePath Tests > server mode > should load the images
  • Image Component basePath Tests > server mode > should update the image on src change
  • Image Component basePath Tests > server mode > should work when using flexbox
  • Image Component basePath Tests > server mode > should work with layout-fixed so resizing window does not resize image
  • Image Component basePath Tests > server mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component basePath Tests > server mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component basePath Tests > server mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component basePath Tests > server mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component basePath Tests > server mode > should work with sizes and automatically use layout-responsive
  • Image Component basePath Tests > server mode > should correctly inherit the visibilty of the parent component
  • Image Component basePath Tests > server mode > should correctly ignore prose styles
  • Image Component basePath Tests > server mode > should correctly rotate image
  • Image Component basePath Tests > serverless mode > should load the images
  • Image Component basePath Tests > serverless mode > should update the image on src change
  • Image Component basePath Tests > serverless mode > should work when using flexbox
  • Image Component basePath Tests > serverless mode > should work with layout-fixed so resizing window does not resize image
  • Image Component basePath Tests > serverless mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component basePath Tests > serverless mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component basePath Tests > serverless mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component basePath Tests > serverless mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component basePath Tests > serverless mode > should work with sizes and automatically use layout-responsive
  • Image Component basePath Tests > serverless mode > should correctly inherit the visibilty of the parent component
  • Image Component basePath Tests > serverless mode > should correctly ignore prose styles
  • Image Component basePath Tests > serverless mode > should correctly rotate image
Expand output

● Image Component basePath Tests › server mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

@ijjk
Copy link
Member

ijjk commented Jan 29, 2021

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 10.3s 10.9s ⚠️ +596ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.075 2.056 -0.02
/ avg req/sec 1204.75 1215.87 +11.12
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.277 1.266 -0.01
/error-in-render avg req/sec 1957.05 1975.45 +18.4
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..38ed.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.4 kB 59.4 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 614 B 614 B
link.html gzip 620 B 620 B
withRouter.html gzip 607 B 607 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 12.7s 12.3s -456ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..38ed.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.4 kB 59.4 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1 MB 1 MB
404.html 2.67 kB 2.67 kB
hooks.html 1.92 kB 1.92 kB
index.js 1 MB 1 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.05 MB 1.05 MB
withRouter.js 1.05 MB 1.05 MB
Overall change 5.19 MB 5.19 MB

Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 12.8s 12.6s -233ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.108 2.119 ⚠️ +0.01
/ avg req/sec 1186.02 1179.55 ⚠️ -6.47
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.327 1.382 ⚠️ +0.05
/error-in-render avg req/sec 1883.37 1808.61 ⚠️ -74.76
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-7c719119..27b6.js gzip 13 kB 13 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.58 kB 6.58 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 59.8 kB 59.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-6e0a903..b885.js gzip 1.26 kB 1.26 kB
_error-7a100..a392.js gzip 3.38 kB 3.38 kB
hooks-f7e199..11b9.js gzip 904 B 904 B
index-3dc22c..ffbb.js gzip 232 B 232 B
link-c010d28..b60a.js gzip 1.63 kB 1.63 kB
routerDirect..323a.js gzip 308 B 308 B
withRouter-a..2ef8.js gzip 304 B 304 B
Overall change 8.02 kB 8.02 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 299 B 299 B
Overall change 299 B 299 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 585 B 585 B
link.html gzip 592 B 592 B
withRouter.html gzip 579 B 579 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "RZ5_kyVfBzrS19aOdLYwY",
+        "buildId": "FiYI5KDu3QMIYEjYs1EAY",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_buildManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_ssgManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "RZ5_kyVfBzrS19aOdLYwY",
+        "buildId": "FiYI5KDu3QMIYEjYs1EAY",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_buildManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_ssgManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "RZ5_kyVfBzrS19aOdLYwY",
+        "buildId": "FiYI5KDu3QMIYEjYs1EAY",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_buildManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/RZ5_kyVfBzrS19aOdLYwY/_ssgManifest.js"
+      src="/_next/static/FiYI5KDu3QMIYEjYs1EAY/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 45a3998

@ijjk
Copy link
Member

ijjk commented Feb 1, 2021

Failing test suites

Commit: a63a9cb

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

@ijjk
Copy link
Member

ijjk commented Feb 1, 2021

Failing test suites

Commit: 603374e

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/basic/test/index.test.js

  • Basic Features > Hot Module Reloading > editing a page > should update styles in a stateful component correctly
Expand output

● Basic Features › Hot Module Reloading › editing a page › should update styles in a stateful component correctly

NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":".hmr-style-page p"}
  (Session info: headless chrome=88.0.4324.96)

  197 |             '/hmr/style-stateful-component'
  198 |           )
> 199 |           const pTag = await browser.elementByCss('.hmr-style-page p')
      |                        ^
  200 |           const initialFontSize = await pTag.getComputedCss('font-size')
  201 | 
  202 |           expect(initialFontSize).toBe('100px')

  at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
  at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
  at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
  at thenableWebDriverProxy.execute (../node_modules/selenium-webdriver/lib/webdriver.js:700:17)
  at Object.<anonymous> (integration/basic/test/hmr.js:199:24)

test/integration/build-output/test/index.test.js

  • Build Output > Basic Application Output > should not deviate from snapshot
Expand output

● Build Output › Basic Application Output › should not deviate from snapshot

expect(received).toBeCloseTo(expected, precision)

Expected: 63.5
Received: 63.6

Expected precision:    1
Expected difference: < 0.05
Received difference:   0.10000000000000142

  105 |       expect(err404FirstLoad.endsWith('kB')).toBe(true)
  106 | 
> 107 |       expect(parseFloat(sharedByAll)).toBeCloseTo(63.5, 1)
      |                                       ^
  108 |       expect(sharedByAll.endsWith('kB')).toBe(true)
  109 | 
  110 |       if (_appSize.endsWith('kB')) {

  at Object.<anonymous> (integration/build-output/test/index.test.js:107:39)

test/integration/image-component/default/test/index.test.js

  • Image Component Tests > server mode > should load the images
  • Image Component Tests > server mode > should preload priority images
  • Image Component Tests > server mode > should not pass through user-provided srcset (causing a flash)
  • Image Component Tests > server mode > should update the image on src change
  • Image Component Tests > server mode > should work when using flexbox
  • Image Component Tests > server mode > should work with layout-fixed so resizing window does not resize image
  • Image Component Tests > server mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component Tests > server mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component Tests > server mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component Tests > server mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component Tests > server mode > should work with sizes and automatically use layout-responsive
  • Image Component Tests > server mode > should correctly inherit the visibilty of the parent component
  • Image Component Tests > server mode > should correctly ignore prose styles
  • Image Component Tests > server mode > should correctly rotate image
  • Image Component Tests > serverless mode > should load the images
  • Image Component Tests > serverless mode > should preload priority images
  • Image Component Tests > serverless mode > should not pass through user-provided srcset (causing a flash)
  • Image Component Tests > serverless mode > should update the image on src change
  • Image Component Tests > serverless mode > should work when using flexbox
  • Image Component Tests > serverless mode > should work with layout-fixed so resizing window does not resize image
  • Image Component Tests > serverless mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component Tests > serverless mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component Tests > serverless mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component Tests > serverless mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component Tests > serverless mode > should work with sizes and automatically use layout-responsive
  • Image Component Tests > serverless mode > should correctly inherit the visibilty of the parent component
  • Image Component Tests > serverless mode > should correctly ignore prose styles
  • Image Component Tests > serverless mode > should correctly rotate image
Expand output

● Image Component Tests › server mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should preload priority images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should not pass through user-provided srcset (causing a flash)

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should preload priority images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should not pass through user-provided srcset (causing a flash)

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

test/integration/styled-jsx-plugin/test/index.test.js

  • styled-jsx using in node_modules > production mode > should serve a page correctly
Expand output

● styled-jsx using in node_modules › production mode › should serve a page correctly

FetchError: request to http://localhost:38189/ failed, reason: connect ECONNREFUSED 127.0.0.1:38189

  at ClientRequest.<anonymous> (../node_modules/node-fetch/lib/index.js:1461:11)

● Test suite failed to run

TypeError: Cannot read property 'pid' of undefined

  282 | export async function killApp(instance) {
  283 |   await new Promise((resolve, reject) => {
> 284 |     treeKill(instance.pid, (err) => {
      |                       ^
  285 |       if (err) {
  286 |         if (
  287 |           process.platform === 'win32' &&

  at lib/next-test-utils.js:284:23
  at killApp (lib/next-test-utils.js:283:9)
  at integration/styled-jsx-plugin/test/index.test.js:39:20

@ijjk
Copy link
Member

ijjk commented Feb 1, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 11.9s 12.7s ⚠️ +748ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.45 2.446 0
/ avg req/sec 1020.25 1022.1 +1.85
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.726 1.775 ⚠️ +0.05
/error-in-render avg req/sec 1448.26 1408.5 ⚠️ -39.76
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 615 B 615 B
link.html gzip 621 B 621 B
withRouter.html gzip 609 B 609 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 14.4s 14.3s -98ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1 MB 1 MB
404.html 2.67 kB 2.67 kB
hooks.html 1.92 kB 1.92 kB
index.js 1 MB 1 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.06 MB 1.06 MB
withRouter.js 1.06 MB 1.06 MB
Overall change 5.19 MB 5.19 MB

Webpack 5 Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 15s 15.2s ⚠️ +174ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.467 2.424 -0.04
/ avg req/sec 1013.4 1031.44 +18.04
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.727 1.64 -0.09
/error-in-render avg req/sec 1447.27 1524.69 +77.42
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-6c246419..806f.js gzip 13 kB 13 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.58 kB 6.58 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 59.9 kB 59.9 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-6e0a903..b885.js gzip 1.26 kB 1.26 kB
_error-7a100..a392.js gzip 3.38 kB 3.38 kB
hooks-f7e199..11b9.js gzip 904 B 904 B
index-3dc22c..ffbb.js gzip 232 B 232 B
link-c010d28..b60a.js gzip 1.63 kB 1.63 kB
routerDirect..323a.js gzip 308 B 308 B
withRouter-a..2ef8.js gzip 304 B 304 B
Overall change 8.02 kB 8.02 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 299 B 299 B
Overall change 299 B 299 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 586 B 586 B
link.html gzip 591 B 591 B
withRouter.html gzip 579 B 579 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "5KW6I3_y3lN6KiG3hx50W",
+        "buildId": "ayoDJukhZiXZPTZnfulP3",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_buildManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_ssgManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "5KW6I3_y3lN6KiG3hx50W",
+        "buildId": "ayoDJukhZiXZPTZnfulP3",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_buildManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_ssgManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "5KW6I3_y3lN6KiG3hx50W",
+        "buildId": "ayoDJukhZiXZPTZnfulP3",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_buildManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/5KW6I3_y3lN6KiG3hx50W/_ssgManifest.js"
+      src="/_next/static/ayoDJukhZiXZPTZnfulP3/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 603374e

@ijjk ijjk added the examples Issue was opened via the examples template. label Feb 1, 2021
// <style jsx> and <style jsx global> support for styled-jsx
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
jsx?: boolean
global?: boolean
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know there were styled-jsx types inside next, even if apparently it was the case, it was not working, users still needed to install @types/styled-jsx, now that it is included in [email protected], we don't need it anymore inside next.

@ijjk
Copy link
Member

ijjk commented Feb 1, 2021

Failing test suites

Commit: 87af170

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/build-output/test/index.test.js

  • Build Output > Basic Application Output > should not deviate from snapshot
Expand output

● Build Output › Basic Application Output › should not deviate from snapshot

expect(received).toBeCloseTo(expected, precision)

Expected: 63.5
Received: 63.6

Expected precision:    1
Expected difference: < 0.05
Received difference:   0.10000000000000142

  105 |       expect(err404FirstLoad.endsWith('kB')).toBe(true)
  106 | 
> 107 |       expect(parseFloat(sharedByAll)).toBeCloseTo(63.5, 1)
      |                                       ^
  108 |       expect(sharedByAll.endsWith('kB')).toBe(true)
  109 | 
  110 |       if (_appSize.endsWith('kB')) {

  at Object.<anonymous> (integration/build-output/test/index.test.js:107:39)

test/integration/export-serverless/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/export-serverless/test/index.test.js:87:7

test/integration/scss/test/index.test.js

  • SCSS Support > Ordering with styled-jsx (prod) > should have compiled successfully
  • SCSS Support > Ordering with styled-jsx (prod) > should have the correct color (css ordering)
Expand output

● SCSS Support › Ordering with styled-jsx (prod) › should have compiled successfully

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  885 | 
  886 |     it('should have compiled successfully', () => {
> 887 |       expect(code).toBe(0)
      |                    ^
  888 |       expect(stdout).toMatch(/Compiled successfully/)
  889 |     })
  890 | 

  at Object.<anonymous> (integration/scss/test/index.test.js:887:20)

● SCSS Support › Ordering with styled-jsx (prod) › should have the correct color (css ordering)

WebDriverError: unknown error: net::ERR_CONNECTION_REFUSED
  (Session info: headless chrome=88.0.4324.96)

  177 |   console.log(`\n> Loading browser with ${url}\n`)
  178 | 
> 179 |   await browser.get(url)
      |   ^
  180 |   console.log(`\n> Loaded browser with ${url}\n`)
  181 | 
  182 |   // Wait for application to hydrate

  at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
  at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
  at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
  at thenableWebDriverProxy.execute (../node_modules/selenium-webdriver/lib/webdriver.js:700:17)
  at _default (lib/next-webdriver.js:179:3)
  at Object.<anonymous> (integration/scss/test/index.test.js:892:23)

● Test suite failed to run

TypeError: Cannot read property 'pid' of undefined

  282 | export async function killApp(instance) {
  283 |   await new Promise((resolve, reject) => {
> 284 |     treeKill(instance.pid, (err) => {
      |                       ^
  285 |       if (err) {
  286 |         if (
  287 |           process.platform === 'win32' &&

  at lib/next-test-utils.js:284:23
  at killApp (lib/next-test-utils.js:283:9)
  at integration/scss/test/index.test.js:883:13

@ijjk
Copy link
Member

ijjk commented Feb 1, 2021

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 8.9s 8.8s -63ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 1.753 1.73 -0.02
/ avg req/sec 1426.22 1445.11 +18.89
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.106 1.09 -0.02
/error-in-render avg req/sec 2260.95 2294.62 +33.67
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 615 B 615 B
link.html gzip 621 B 621 B
withRouter.html gzip 609 B 609 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 10.5s 10.8s ⚠️ +360ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1 MB 1 MB
404.html 2.67 kB 2.67 kB
hooks.html 1.92 kB 1.92 kB
index.js 1 MB 1 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.06 MB 1.06 MB
withRouter.js 1.06 MB 1.06 MB
Overall change 5.19 MB 5.19 MB

Webpack 5 Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 10.5s 10.8s ⚠️ +292ms
nodeModulesSize 75 MB 76 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 1.709 1.689 -0.02
/ avg req/sec 1462.52 1480.22 +17.7
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.101 1.098 0
/error-in-render avg req/sec 2271.53 2277.51 +5.98
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-6c246419..806f.js gzip 13 kB 13 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.58 kB 6.58 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 59.9 kB 59.9 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-6e0a903..b885.js gzip 1.26 kB 1.26 kB
_error-7a100..a392.js gzip 3.38 kB 3.38 kB
hooks-f7e199..11b9.js gzip 904 B 904 B
index-3dc22c..ffbb.js gzip 232 B 232 B
link-c010d28..b60a.js gzip 1.63 kB 1.63 kB
routerDirect..323a.js gzip 308 B 308 B
withRouter-a..2ef8.js gzip 304 B 304 B
Overall change 8.02 kB 8.02 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 299 B 299 B
Overall change 299 B 299 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 586 B 586 B
link.html gzip 591 B 591 B
withRouter.html gzip 579 B 579 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "xZQpo8AMEZ6fKprkSx6Bp",
+        "buildId": "LKQ4efat0tkymgMuFighM",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_buildManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_ssgManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "xZQpo8AMEZ6fKprkSx6Bp",
+        "buildId": "LKQ4efat0tkymgMuFighM",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_buildManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_ssgManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "xZQpo8AMEZ6fKprkSx6Bp",
+        "buildId": "LKQ4efat0tkymgMuFighM",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_buildManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/xZQpo8AMEZ6fKprkSx6Bp/_ssgManifest.js"
+      src="/_next/static/LKQ4efat0tkymgMuFighM/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 87af170

@ijjk
Copy link
Member

ijjk commented Feb 8, 2021

Failing test suites

Commit: 8c4de8e

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/amphtml/test/index.test.js

  • AMP Usage > production mode > should not contain missing files warning
  • AMP Usage > production mode > With AMP context > should render the normal page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render nested normal page with AMP hook
  • AMP Usage > production mode > With AMP context > should render nested AMP page with AMP hook
  • AMP Usage > production mode > With basic AMP usage > should render the page as valid AMP
  • AMP Usage > production mode > With basic AMP usage > should render the page without leaving render target
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only with config exported after declaration
  • AMP Usage > production mode > With basic AMP usage > should add link preload for amp script
  • AMP Usage > production mode > With basic AMP usage > should drop custom scripts
  • AMP Usage > production mode > With basic AMP usage > should not drop custom amp scripts
  • AMP Usage > production mode > With basic AMP usage > should optimize clean
  • AMP Usage > production mode > With basic AMP usage > should auto import extensions
  • AMP Usage > production mode > With basic usage > should render the page
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml
  • AMP Usage > production mode > canonical amphtml > should render amphtml from provided rel link
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml with existing query
  • AMP Usage > production mode > canonical amphtml > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > canonical amphtml > should render a canonical regardless of amp-only status (explicit)
  • AMP Usage > production mode > canonical amphtml > should not render amphtml link tag with no AMP page
  • AMP Usage > production mode > canonical amphtml > should remove conflicting amp tags
  • AMP Usage > production mode > canonical amphtml > should allow manually setting canonical
  • AMP Usage > production mode > canonical amphtml > should allow manually setting amphtml rel
  • AMP Usage > production mode > combined styles > should combine style tags
  • AMP Usage > production mode > combined styles > should remove sourceMaps from styles
Expand output

● AMP Usage › production mode › should not contain missing files warning

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic usage › should render the page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page as valid AMP

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page without leaving render target

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only with config exported after declaration

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should add link preload for amp script

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should drop custom scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not drop custom amp scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should optimize clean

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should auto import extensions

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the normal page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested normal page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested AMP page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render amphtml from provided rel link

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml with existing query

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render a canonical regardless of amp-only status (explicit)

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should not render amphtml link tag with no AMP page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should remove conflicting amp tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting canonical

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting amphtml rel

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should combine style tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should remove sourceMaps from styles

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml/test/index.test.js:50:20

@ijjk ijjk added create-next-app Related to our CLI tool for quickly starting a new Next.js application. type: documentation labels Feb 8, 2021
@ijjk
Copy link
Member

ijjk commented Feb 8, 2021

Failing test suites

Commit: b060c0c

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

@theoludwig theoludwig changed the title build(deps): bump styled-jsx from 3.3.2 to 3.4.1 build(deps): bump styled-jsx from 3.3.2 to 3.4.2 Feb 8, 2021
@ijjk
Copy link
Member

ijjk commented Feb 8, 2021

Failing test suites

Commit: c6e762c

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/amphtml/test/index.test.js

  • AMP Usage > production mode > should not contain missing files warning
  • AMP Usage > production mode > With AMP context > should render the normal page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render nested normal page with AMP hook
  • AMP Usage > production mode > With AMP context > should render nested AMP page with AMP hook
  • AMP Usage > production mode > With basic AMP usage > should render the page as valid AMP
  • AMP Usage > production mode > With basic AMP usage > should render the page without leaving render target
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only with config exported after declaration
  • AMP Usage > production mode > With basic AMP usage > should add link preload for amp script
  • AMP Usage > production mode > With basic AMP usage > should drop custom scripts
  • AMP Usage > production mode > With basic AMP usage > should not drop custom amp scripts
  • AMP Usage > production mode > With basic AMP usage > should optimize clean
  • AMP Usage > production mode > With basic AMP usage > should auto import extensions
  • AMP Usage > production mode > With basic usage > should render the page
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml
  • AMP Usage > production mode > canonical amphtml > should render amphtml from provided rel link
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml with existing query
  • AMP Usage > production mode > canonical amphtml > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > canonical amphtml > should render a canonical regardless of amp-only status (explicit)
  • AMP Usage > production mode > canonical amphtml > should not render amphtml link tag with no AMP page
  • AMP Usage > production mode > canonical amphtml > should remove conflicting amp tags
  • AMP Usage > production mode > canonical amphtml > should allow manually setting canonical
  • AMP Usage > production mode > canonical amphtml > should allow manually setting amphtml rel
  • AMP Usage > production mode > combined styles > should combine style tags
  • AMP Usage > production mode > combined styles > should remove sourceMaps from styles
Expand output

● AMP Usage › production mode › should not contain missing files warning

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic usage › should render the page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page as valid AMP

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page without leaving render target

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only with config exported after declaration

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should add link preload for amp script

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should drop custom scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not drop custom amp scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should optimize clean

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should auto import extensions

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the normal page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested normal page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested AMP page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render amphtml from provided rel link

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml with existing query

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render a canonical regardless of amp-only status (explicit)

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should not render amphtml link tag with no AMP page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should remove conflicting amp tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting canonical

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting amphtml rel

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should combine style tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should remove sourceMaps from styles

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  601 |       return this._cachedPreviewManifest
  602 |     }
> 603 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  604 |     return (this._cachedPreviewManifest = manifest)
  605 |   }
  606 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:603:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:608:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml/test/index.test.js:50:20

test/integration/export-serverless/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/export-serverless/test/index.test.js:87:7

test/integration/image-component/base-path/test/index.test.js

  • Image Component basePath Tests > server mode > should load the images
  • Image Component basePath Tests > server mode > should update the image on src change
  • Image Component basePath Tests > server mode > should work when using flexbox
  • Image Component basePath Tests > server mode > should work with layout-fixed so resizing window does not resize image
  • Image Component basePath Tests > server mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component basePath Tests > server mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component basePath Tests > server mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component basePath Tests > server mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component basePath Tests > server mode > should work with sizes and automatically use layout-responsive
  • Image Component basePath Tests > server mode > should correctly inherit the visibilty of the parent component
  • Image Component basePath Tests > server mode > should correctly ignore prose styles
  • Image Component basePath Tests > server mode > should correctly rotate image
  • Image Component basePath Tests > serverless mode > should load the images
  • Image Component basePath Tests > serverless mode > should update the image on src change
  • Image Component basePath Tests > serverless mode > should work when using flexbox
  • Image Component basePath Tests > serverless mode > should work with layout-fixed so resizing window does not resize image
  • Image Component basePath Tests > serverless mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component basePath Tests > serverless mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component basePath Tests > serverless mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component basePath Tests > serverless mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component basePath Tests > serverless mode > should work with sizes and automatically use layout-responsive
  • Image Component basePath Tests > serverless mode > should correctly inherit the visibilty of the parent component
  • Image Component basePath Tests > serverless mode > should correctly ignore prose styles
  • Image Component basePath Tests > serverless mode > should correctly rotate image
Expand output

● Image Component basePath Tests › server mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › server mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component basePath Tests › serverless mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

test/integration/scss/test/index.test.js

  • SCSS Support > Ordering with styled-jsx (prod) > should have compiled successfully
  • SCSS Support > Ordering with styled-jsx (prod) > should have the correct color (css ordering)
Expand output

● SCSS Support › Ordering with styled-jsx (prod) › should have compiled successfully

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  885 | 
  886 |     it('should have compiled successfully', () => {
> 887 |       expect(code).toBe(0)
      |                    ^
  888 |       expect(stdout).toMatch(/Compiled successfully/)
  889 |     })
  890 | 

  at Object.<anonymous> (integration/scss/test/index.test.js:887:20)

● SCSS Support › Ordering with styled-jsx (prod) › should have the correct color (css ordering)

WebDriverError: unknown error: net::ERR_CONNECTION_REFUSED
  (Session info: headless chrome=88.0.4324.96)

  177 |   console.log(`\n> Loading browser with ${url}\n`)
  178 | 
> 179 |   await browser.get(url)
      |   ^
  180 |   console.log(`\n> Loaded browser with ${url}\n`)
  181 | 
  182 |   // Wait for application to hydrate

  at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
  at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
  at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
  at thenableWebDriverProxy.execute (../node_modules/selenium-webdriver/lib/webdriver.js:700:17)
  at _default (lib/next-webdriver.js:179:3)
  at Object.<anonymous> (integration/scss/test/index.test.js:892:23)

● Test suite failed to run

TypeError: Cannot read property 'pid' of undefined

  282 | export async function killApp(instance) {
  283 |   await new Promise((resolve, reject) => {
> 284 |     treeKill(instance.pid, (err) => {
      |                       ^
  285 |       if (err) {
  286 |         if (
  287 |           process.platform === 'win32' &&

  at lib/next-test-utils.js:284:23
  at killApp (lib/next-test-utils.js:283:9)
  at integration/scss/test/index.test.js:883:13

@ijjk
Copy link
Member

ijjk commented Feb 8, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 10.7s 10.9s ⚠️ +252ms
nodeModulesSize 75.3 MB 76.3 MB ⚠️ +926 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.036 2.034 0
/ avg req/sec 1227.82 1229.1 +1.28
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.256 1.288 ⚠️ +0.03
/error-in-render avg req/sec 1989.81 1941.56 ⚠️ -48.25
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 615 B 615 B
link.html gzip 620 B 620 B
withRouter.html gzip 608 B 608 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 12.8s 12.6s -126ms
nodeModulesSize 75.3 MB 76.3 MB ⚠️ +926 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..49c4.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.63 kB 6.63 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.5 kB 59.5 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
hooks-c71ae4..70cd.js gzip 887 B 887 B
index-bbee2f..528b.js gzip 227 B 227 B
link-7faf09b..eba4.js gzip 1.64 kB 1.64 kB
routerDirect..bf84.js gzip 303 B 303 B
withRouter-a..5826.js gzip 302 B 302 B
Overall change 8.09 kB 8.09 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 321 B 321 B
Overall change 321 B 321 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1 MB 1 MB
404.html 2.67 kB 2.67 kB
hooks.html 1.92 kB 1.92 kB
index.js 1 MB 1 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.06 MB 1.06 MB
withRouter.js 1.06 MB 1.06 MB
Overall change 5.19 MB 5.19 MB

Webpack 5 Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 13.4s 13.6s ⚠️ +178ms
nodeModulesSize 75.3 MB 76.3 MB ⚠️ +926 kB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.17 2.196 ⚠️ +0.03
/ avg req/sec 1152.13 1138.45 ⚠️ -13.68
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.383 1.359 -0.02
/error-in-render avg req/sec 1807.88 1839.67 +31.79
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-6c246419..806f.js gzip 13 kB 13 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.58 kB 6.58 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 59.9 kB 59.9 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-6e0a903..b885.js gzip 1.26 kB 1.26 kB
_error-7a100..a392.js gzip 3.38 kB 3.38 kB
hooks-f7e199..11b9.js gzip 904 B 904 B
index-3dc22c..ffbb.js gzip 232 B 232 B
link-c010d28..b60a.js gzip 1.63 kB 1.63 kB
routerDirect..323a.js gzip 308 B 308 B
withRouter-a..2ef8.js gzip 304 B 304 B
Overall change 8.02 kB 8.02 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 299 B 299 B
Overall change 299 B 299 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 584 B 584 B
link.html gzip 591 B 591 B
withRouter.html gzip 578 B 578 B
Overall change 1.75 kB 1.75 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "FfTEJIUNsFoMa8_D9EtDF",
+        "buildId": "NNPoh1yEJ6AAYQguZm5z8",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_buildManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_ssgManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "FfTEJIUNsFoMa8_D9EtDF",
+        "buildId": "NNPoh1yEJ6AAYQguZm5z8",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_buildManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_ssgManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "FfTEJIUNsFoMa8_D9EtDF",
+        "buildId": "NNPoh1yEJ6AAYQguZm5z8",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_buildManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/FfTEJIUNsFoMa8_D9EtDF/_ssgManifest.js"
+      src="/_next/static/NNPoh1yEJ6AAYQguZm5z8/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: c6e762c

@theoludwig
Copy link
Contributor Author

cc @Timer, I would appreciate some help to the fix the issue with the CI.

@theoludwig theoludwig changed the title build(deps): bump styled-jsx from 3.3.2 to 3.4.2 build(deps): bump styled-jsx from 3.3.2 to 3.4.4 Feb 20, 2021
@ijjk
Copy link
Member

ijjk commented Feb 20, 2021

Failing test suites

Commit: 0af59e8

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 | 

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/export-serverless/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/export-serverless/test/index.test.js:87:7

test/integration/amphtml/test/index.test.js

  • AMP Usage > production mode > should not contain missing files warning
  • AMP Usage > production mode > With AMP context > should render the normal page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render nested normal page with AMP hook
  • AMP Usage > production mode > With AMP context > should render nested AMP page with AMP hook
  • AMP Usage > production mode > With basic AMP usage > should render the page as valid AMP
  • AMP Usage > production mode > With basic AMP usage > should render the page without leaving render target
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only with config exported after declaration
  • AMP Usage > production mode > With basic AMP usage > should add link preload for amp script
  • AMP Usage > production mode > With basic AMP usage > should drop custom scripts
  • AMP Usage > production mode > With basic AMP usage > should not drop custom amp scripts
  • AMP Usage > production mode > With basic AMP usage > should optimize clean
  • AMP Usage > production mode > With basic AMP usage > should auto import extensions
  • AMP Usage > production mode > With basic usage > should render the page
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml
  • AMP Usage > production mode > canonical amphtml > should render amphtml from provided rel link
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml with existing query
  • AMP Usage > production mode > canonical amphtml > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > canonical amphtml > should render a canonical regardless of amp-only status (explicit)
  • AMP Usage > production mode > canonical amphtml > should not render amphtml link tag with no AMP page
  • AMP Usage > production mode > canonical amphtml > should remove conflicting amp tags
  • AMP Usage > production mode > canonical amphtml > should allow manually setting canonical
  • AMP Usage > production mode > canonical amphtml > should allow manually setting amphtml rel
  • AMP Usage > production mode > combined styles > should combine style tags
  • AMP Usage > production mode > combined styles > should remove sourceMaps from styles
Expand output

● AMP Usage › production mode › should not contain missing files warning

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic usage › should render the page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page as valid AMP

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should render the page without leaving render target

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only with config exported after declaration

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should add link preload for amp script

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should drop custom scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should not drop custom amp scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should optimize clean

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With basic AMP usage › should auto import extensions

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the normal page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested normal page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › With AMP context › should render nested AMP page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render amphtml from provided rel link

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml with existing query

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should render a canonical regardless of amp-only status (explicit)

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should not render amphtml link tag with no AMP page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should remove conflicting amp tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting canonical

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › canonical amphtml › should allow manually setting amphtml rel

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should combine style tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● AMP Usage › production mode › combined styles › should remove sourceMaps from styles

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from 'next-server.js'

  605 |       return this._cachedPreviewManifest
  606 |     }
> 607 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  608 |     return (this._cachedPreviewManifest = manifest)
  609 |   }
  610 | 

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:259:17)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:607:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:612:12)
  at new Server (../packages/next/next-server/server/next-server.ts:202:23)
  at createServer (../packages/next/server/next.ts:41:10)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  316 | 
  317 | export async function stopApp(server) {
> 318 |   if (server.__app) {
      |              ^
  319 |     await server.__app.close()
  320 |   }
  321 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:318:14)
  at integration/amphtml/test/index.test.js:50:20

test/integration/image-component/default/test/index.test.js

  • Image Component Tests > server mode > should load the images
  • Image Component Tests > server mode > should preload priority images
  • Image Component Tests > server mode > should not pass through user-provided srcset (causing a flash)
  • Image Component Tests > server mode > should update the image on src change
  • Image Component Tests > server mode > should work when using flexbox
  • Image Component Tests > server mode > should work with layout-fixed so resizing window does not resize image
  • Image Component Tests > server mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component Tests > server mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component Tests > server mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component Tests > server mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component Tests > server mode > should work with sizes and automatically use layout-responsive
  • Image Component Tests > server mode > should correctly inherit the visibilty of the parent component
  • Image Component Tests > server mode > should correctly ignore prose styles
  • Image Component Tests > server mode > should correctly rotate image
  • Image Component Tests > serverless mode > should load the images
  • Image Component Tests > serverless mode > should preload priority images
  • Image Component Tests > serverless mode > should not pass through user-provided srcset (causing a flash)
  • Image Component Tests > serverless mode > should update the image on src change
  • Image Component Tests > serverless mode > should work when using flexbox
  • Image Component Tests > serverless mode > should work with layout-fixed so resizing window does not resize image
  • Image Component Tests > serverless mode > should work with layout-intrinsic so resizing window maintains image aspect ratio
  • Image Component Tests > serverless mode > should work with layout-responsive so resizing window maintains image aspect ratio
  • Image Component Tests > serverless mode > should work with layout-fill to fill the parent but NOT stretch with viewport
  • Image Component Tests > serverless mode > should work with layout-fill to fill the parent and stretch with viewport
  • Image Component Tests > serverless mode > should work with sizes and automatically use layout-responsive
  • Image Component Tests > serverless mode > should correctly inherit the visibilty of the parent component
  • Image Component Tests > serverless mode > should correctly ignore prose styles
  • Image Component Tests > serverless mode > should correctly rotate image
Expand output

● Image Component Tests › server mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should preload priority images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should not pass through user-provided srcset (causing a flash)

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › server mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should load the images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should preload priority images

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should not pass through user-provided srcset (causing a flash)

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should update the image on src change

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work when using flexbox

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fixed so resizing window does not resize image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-intrinsic so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-responsive so resizing window maintains image aspect ratio

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fill to fill the parent but NOT stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with layout-fill to fill the parent and stretch with viewport

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should work with sizes and automatically use layout-responsive

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly inherit the visibilty of the parent component

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly ignore prose styles

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

● Image Component Tests › serverless mode › should correctly rotate image

command failed with code 1

  138 |         code !== 0
  139 |       ) {
> 140 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  141 |       }
  142 | 
  143 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:140:23)

test/integration/scss/test/index.test.js

  • SCSS Support > Ordering with styled-jsx (prod) > should have compiled successfully
  • SCSS Support > Ordering with styled-jsx (prod) > should have the correct color (css ordering)
Expand output

● SCSS Support › Ordering with styled-jsx (prod) › should have compiled successfully

expect(received).toBe(expected) // Object.is equality

Expected: 0
Received: 1

  885 | 
  886 |     it('should have compiled successfully', () => {
> 887 |       expect(code).toBe(0)
      |                    ^
  888 |       expect(stdout).toMatch(/Compiled successfully/)
  889 |     })
  890 | 

  at Object.<anonymous> (integration/scss/test/index.test.js:887:20)

● SCSS Support › Ordering with styled-jsx (prod) › should have the correct color (css ordering)

WebDriverError: unknown error: net::ERR_CONNECTION_REFUSED
  (Session info: headless chrome=88.0.4324.150)

  177 |   console.log(`\n> Loading browser with ${url}\n`)
  178 | 
> 179 |   await browser.get(url)
      |   ^
  180 |   console.log(`\n> Loaded browser with ${url}\n`)
  181 | 
  182 |   // Wait for application to hydrate

  at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
  at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
  at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
  at thenableWebDriverProxy.execute (../node_modules/selenium-webdriver/lib/webdriver.js:700:17)
  at _default (lib/next-webdriver.js:179:3)
  at Object.<anonymous> (integration/scss/test/index.test.js:892:23)

● Test suite failed to run

TypeError: Cannot read property 'pid' of undefined

  282 | export async function killApp(instance) {
  283 |   await new Promise((resolve, reject) => {
> 284 |     treeKill(instance.pid, (err) => {
      |                       ^
  285 |       if (err) {
  286 |         if (
  287 |           process.platform === 'win32' &&

  at lib/next-test-utils.js:284:23
  at killApp (lib/next-test-utils.js:283:9)
  at integration/scss/test/index.test.js:883:13

@ijjk
Copy link
Member

ijjk commented Feb 20, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 9.5s 9.4s -146ms
nodeModulesSize 42.6 MB 43.6 MB ⚠️ +1.02 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 1.729 1.718 -0.01
/ avg req/sec 1445.53 1455.06 +9.53
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.04 1.09 ⚠️ +0.05
/error-in-render avg req/sec 2403.34 2293.3 ⚠️ -110.04
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..854c.js gzip 13.2 kB 13.2 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.6 kB 59.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 615 B 615 B
link.html gzip 621 B 621 B
withRouter.html gzip 608 B 608 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 11.1s 10.9s -146ms
nodeModulesSize 42.6 MB 43.6 MB ⚠️ +1.02 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..854c.js gzip 13.2 kB 13.2 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.6 kB 59.6 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1.01 MB 1.01 MB
404.html 2.67 kB 2.67 kB
amp.amp.html 10.4 kB 10.4 kB
amp.html 1.86 kB 1.86 kB
hooks.html 1.92 kB 1.92 kB
index.js 1.01 MB 1.01 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.06 MB 1.06 MB
withRouter.js 1.06 MB 1.06 MB
Overall change 5.2 MB 5.2 MB

Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 11s 11.3s ⚠️ +298ms
nodeModulesSize 42.6 MB 43.6 MB ⚠️ +1.02 MB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 1.711 1.754 ⚠️ +0.04
/ avg req/sec 1460.97 1424.97 ⚠️ -36
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.065 1.077 ⚠️ +0.01
/error-in-render avg req/sec 2348.22 2321.3 ⚠️ -26.92
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-dc8125e2..ef24.js gzip 13.1 kB 13.1 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.59 kB 6.59 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 60 kB 60 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-aedc815..1421.js gzip 1.26 kB 1.26 kB
_error-71ec2..1a96.js gzip 3.38 kB 3.38 kB
amp-33a09cb0..6745.js gzip 536 B 536 B
hooks-4e968a..f870.js gzip 902 B 902 B
index-5c6845..f75c.js gzip 230 B 230 B
link-99f0c6c..b84a.js gzip 1.65 kB 1.65 kB
routerDirect..bb56.js gzip 306 B 306 B
withRouter-7..2133.js gzip 302 B 302 B
Overall change 8.57 kB 8.57 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 326 B 326 B
Overall change 326 B 326 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 586 B 586 B
link.html gzip 593 B 593 B
withRouter.html gzip 582 B 582 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "_IsVuGE8WH-QFvvpj1zxA",
+        "buildId": "NHXiSRCzH-HK207xqA6eK",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_buildManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_ssgManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "_IsVuGE8WH-QFvvpj1zxA",
+        "buildId": "NHXiSRCzH-HK207xqA6eK",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_buildManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_ssgManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "_IsVuGE8WH-QFvvpj1zxA",
+        "buildId": "NHXiSRCzH-HK207xqA6eK",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_buildManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/_IsVuGE8WH-QFvvpj1zxA/_ssgManifest.js"
+      src="/_next/static/NHXiSRCzH-HK207xqA6eK/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 0af59e8

@ijjk
Copy link
Member

ijjk commented Mar 1, 2021

Stats from current PR

Default Server Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 13.3s 13.3s -12ms
nodeModulesSize 42.7 MB 43.7 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.406 2.411 0
/ avg req/sec 1039.21 1036.85 ⚠️ -2.36
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.64 1.626 -0.01
/error-in-render avg req/sec 1524.3 1537.88 +13.58
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..e7a0.js gzip 13.4 kB 13.4 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.7 kB 59.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 612 B 612 B
link.html gzip 619 B 619 B
withRouter.html gzip 608 B 608 B
Overall change 1.84 kB 1.84 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 15.5s 15.5s -9ms
nodeModulesSize 42.7 MB 43.7 MB ⚠️ +1.02 MB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
677f882d2ed8..e7a0.js gzip 13.4 kB 13.4 kB
framework.HASH.js gzip 39 kB 39 kB
main-HASH.js gzip 6.65 kB 6.65 kB
webpack-HASH.js gzip 751 B 751 B
Overall change 59.7 kB 59.7 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.3 kB 31.3 kB
Overall change 31.3 kB 31.3 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-2a09aa2..4a98.js gzip 1.28 kB 1.28 kB
_error-8b758..aef6.js gzip 3.46 kB 3.46 kB
amp-e3e9bc99..932c.js gzip 536 B 536 B
hooks-5023ef..3670.js gzip 888 B 888 B
index-3a2b03..c677.js gzip 227 B 227 B
link-177412b..043e.js gzip 1.67 kB 1.67 kB
routerDirect..1a66.js gzip 303 B 303 B
withRouter-9..1b7d.js gzip 302 B 302 B
Overall change 8.66 kB 8.66 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 347 B 347 B
Overall change 347 B 347 B
Serverless bundles
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1.01 MB 1.01 MB
404.html 2.67 kB 2.67 kB
500.html 2.65 kB 2.65 kB
amp.amp.html 10.4 kB 10.4 kB
amp.html 1.86 kB 1.86 kB
hooks.html 1.92 kB 1.92 kB
index.js 1.01 MB 1.01 MB
link.js 1.06 MB 1.06 MB
routerDirect.js 1.06 MB 1.06 MB
withRouter.js 1.06 MB 1.06 MB
Overall change 5.21 MB 5.21 MB

Webpack 5 Mode (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 16s 15.9s -71ms
nodeModulesSize 42.7 MB 43.7 MB ⚠️ +1.02 MB
Page Load Tests Overall increase ✓
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.405 2.31 -0.09
/ avg req/sec 1039.64 1082.08 +42.44
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.768 1.768
/error-in-render avg req/sec 1414.24 1414.11 ⚠️ -0.13
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-74632e79..1d47.js gzip 13.3 kB 13.3 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 6.6 kB 6.6 kB
webpack-HASH.js gzip 954 B 954 B
Overall change 60.1 kB 60.1 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-aedc815..1421.js gzip 1.26 kB 1.26 kB
_error-71ec2..1a96.js gzip 3.38 kB 3.38 kB
amp-33a09cb0..6745.js gzip 536 B 536 B
hooks-4e968a..f870.js gzip 902 B 902 B
index-5c6845..f75c.js gzip 230 B 230 B
link-99f0c6c..b84a.js gzip 1.65 kB 1.65 kB
routerDirect..bb56.js gzip 306 B 306 B
withRouter-7..2133.js gzip 302 B 302 B
Overall change 8.57 kB 8.57 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 326 B 326 B
Overall change 326 B 326 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 587 B 587 B
link.html gzip 593 B 593 B
withRouter.html gzip 582 B 582 B
Overall change 1.76 kB 1.76 kB

Diffs

Diff for index.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "U_Izni543sGJIx9GhsFHH",
+        "buildId": "q7VUfVhfA3GIjCMFBRS-C",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_buildManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_ssgManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "U_Izni543sGJIx9GhsFHH",
+        "buildId": "q7VUfVhfA3GIjCMFBRS-C",
         "isFallback": false,
         "gip": true
       }
@@ -82,11 +82,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_buildManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_ssgManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -43,7 +43,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "U_Izni543sGJIx9GhsFHH",
+        "buildId": "q7VUfVhfA3GIjCMFBRS-C",
         "isFallback": false,
         "gip": true
       }
@@ -77,11 +77,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_buildManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/U_Izni543sGJIx9GhsFHH/_ssgManifest.js"
+      src="/_next/static/q7VUfVhfA3GIjCMFBRS-C/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: aad5af2

@ijjk
Copy link
Member

ijjk commented Mar 26, 2021

Failing test suites

Commit: 0612dc2

test/integration/amphtml-fragment-style/test/index.test.js

  • AMP Fragment Styles > adds styles from fragment in AMP mode correctly
Expand output

● AMP Fragment Styles › adds styles from fragment in AMP mode correctly

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  317 |
  318 | export async function stopApp(server) {
> 319 |   if (server.__app) {
      |              ^
  320 |     await server.__app.close()
  321 |   }
  322 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:319:14)
  at integration/amphtml-fragment-style/test/index.test.js:32:18

test/integration/app-document-style-fragment/test/index.test.js

  • Custom Document Fragment Styles > correctly adds styles from fragment styles key
Expand output

● Custom Document Fragment Styles › correctly adds styles from fragment styles key

expect(received).toMatch(expected)

Expected pattern: /font-size:(.*|)16\.4px/
Received string:  "html { background: hotpink; }body { margin: 0 }"

  37 |     const styles = $('style').text()
  38 |     expect(styles).toMatch(/background:(.*|)hotpink/)
> 39 |     expect(styles).toMatch(/font-size:(.*|)16\.4px/)
     |                    ^
  40 |   })
  41 | })
  42 |

  at Object.<anonymous> (integration/app-document-style-fragment/test/index.test.js:39:20)

test/integration/amphtml/test/index.test.js

  • AMP Usage > production mode > should not contain missing files warning
  • AMP Usage > production mode > With AMP context > should render the normal page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > With AMP context > should render nested normal page with AMP hook
  • AMP Usage > production mode > With AMP context > should render nested AMP page with AMP hook
  • AMP Usage > production mode > With basic AMP usage > should render the page as valid AMP
  • AMP Usage > production mode > With basic AMP usage > should render the page without leaving render target
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only
  • AMP Usage > production mode > With basic AMP usage > should not output client pages for AMP only with config exported after declaration
  • AMP Usage > production mode > With basic AMP usage > should add link preload for amp script
  • AMP Usage > production mode > With basic AMP usage > should drop custom scripts
  • AMP Usage > production mode > With basic AMP usage > should not drop custom amp scripts
  • AMP Usage > production mode > With basic AMP usage > should optimize clean
  • AMP Usage > production mode > With basic AMP usage > should auto import extensions
  • AMP Usage > production mode > With basic usage > should render the page
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml
  • AMP Usage > production mode > canonical amphtml > should render amphtml from provided rel link
  • AMP Usage > production mode > canonical amphtml > should render link rel amphtml with existing query
  • AMP Usage > production mode > canonical amphtml > should render the AMP page that uses the AMP hook
  • AMP Usage > production mode > canonical amphtml > should render a canonical regardless of amp-only status (explicit)
  • AMP Usage > production mode > canonical amphtml > should not render amphtml link tag with no AMP page
  • AMP Usage > production mode > canonical amphtml > should remove conflicting amp tags
  • AMP Usage > production mode > canonical amphtml > should allow manually setting canonical
  • AMP Usage > production mode > canonical amphtml > should allow manually setting amphtml rel
  • AMP Usage > production mode > combined styles > should combine style tags
  • AMP Usage > production mode > combined styles > should remove sourceMaps from styles
Expand output

● AMP Usage › production mode › should not contain missing files warning

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic usage › should render the page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should render the page as valid AMP

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should render the page without leaving render target

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should not output client pages for AMP only with config exported after declaration

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should add link preload for amp script

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should drop custom scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should not drop custom amp scripts

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should optimize clean

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With basic AMP usage › should auto import extensions

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With AMP context › should render the normal page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With AMP context › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With AMP context › should render nested normal page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › With AMP context › should render nested AMP page with AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should render amphtml from provided rel link

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should render link rel amphtml with existing query

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should render the AMP page that uses the AMP hook

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should render a canonical regardless of amp-only status (explicit)

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should not render amphtml link tag with no AMP page

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should remove conflicting amp tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should allow manually setting canonical

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › canonical amphtml › should allow manually setting amphtml rel

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › combined styles › should combine style tags

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● AMP Usage › production mode › combined styles › should remove sourceMaps from styles

Cannot find module '/home/runner/work/next.js/next.js/test/integration/amphtml/.next/prerender-manifest.json' from '../packages/next/dist/next-server/server/next-server.js'

  624 |       return this._cachedPreviewManifest
  625 |     }
> 626 |     const manifest = require(join(this.distDir, PRERENDER_MANIFEST))
      |                      ^
  627 |     return (this._cachedPreviewManifest = manifest)
  628 |   }
  629 |

  at Resolver.resolveModule (../node_modules/jest-resolve/build/index.js:311:11)
  at Server.getPrerenderManifest (../packages/next/next-server/server/next-server.ts:626:22)
  at Server.getPreviewProps (../packages/next/next-server/server/next-server.ts:631:12)
  at new Server (../packages/next/next-server/server/next-server.ts:198:23)
  at NextServer.createServer (../packages/next/server/next.ts:106:12)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  317 |
  318 | export async function stopApp(server) {
> 319 |   if (server.__app) {
      |              ^
  320 |     await server.__app.close()
  321 |   }
  322 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:319:14)
  at integration/amphtml/test/index.test.js:50:20

test/integration/basic/test/index.test.js

  • Basic Features > Hot Module Reloading > editing a page > should update styles in a stateful component correctly
Expand output

● Basic Features › Hot Module Reloading › editing a page › should update styles in a stateful component correctly

NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":".hmr-style-page p"}
  (Session info: headless chrome=89.0.4389.90)

  197 |             '/hmr/style-stateful-component'
  198 |           )
> 199 |           const pTag = await browser.elementByCss('.hmr-style-page p')
      |                        ^
  200 |           const initialFontSize = await pTag.getComputedCss('font-size')
  201 |
  202 |           expect(initialFontSize).toBe('100px')

  at Object.throwDecodedError (../node_modules/selenium-webdriver/lib/error.js:550:15)
  at parseHttpResponse (../node_modules/selenium-webdriver/lib/http.js:565:13)
  at Executor.execute (../node_modules/selenium-webdriver/lib/http.js:491:26)
      at runMicrotasks (<anonymous>)
  at thenableWebDriverProxy.execute (../node_modules/selenium-webdriver/lib/webdriver.js:700:17)
  at Object.<anonymous> (integration/basic/test/hmr.js:199:24)

test/integration/export/test/index.test.js

  • Static Export > should delete existing exported files
  • Static Export > should honor exportTrailingSlash for 404 page
  • Static Export > should handle trailing slash in getStaticPaths
  • Static Export > should only output 404.html without exportTrailingSlash
  • Static Export > should not duplicate /index with exportTrailingSlash
  • Static Export > API routes export > Should throw if a route is matched
  • Static Export > Dynamic routes export > Should throw error not matched route
  • Static Export > ExportPathMap's query in development mode > should be present in ctx.query
  • Static Export > ExportPathMap's query in development mode > should replace url query params in ctx.query when conflicting
  • Static Export > ExportPathMap's query in development mode > should be merged with url query params in ctx.query
  • Static Export > Render in development mode > should render the home page
  • Static Export > Render in development mode > should render pages only existent in exportPathMap page
  • Static Export > Render via SSR > should render the home page
  • Static Export > Render via SSR > should render the about page
  • Static Export > Render via SSR > should render links correctly
  • Static Export > Render via SSR > should render a page with getInitialProps
  • Static Export > Render via SSR > should render a dynamically rendered custom url page
  • Static Export > Render via SSR > should render pages with dynamic imports
  • Static Export > Render via SSR > should render paths with extensions
  • Static Export > Render via SSR > should give empty object for query if there is no query
  • Static Export > Render via SSR > should render _error on 404.html even if not provided in exportPathMap
  • Static Export > Render via SSR > should render _error on /404/index.html
  • Static Export > Render via SSR > Should serve static files
  • Static Export > Render via SSR > Should serve public files
  • Static Export > Render via SSR > Should render dynamic files with query
  • Static Export > Render via browser > should render the home page
  • Static Export > Render via browser > should add trailing slash on Link
  • Static Export > Render via browser > should not add any slash on hash Link
  • Static Export > Render via browser > should preserve hash symbol on empty hash Link
  • Static Export > Render via browser > should preserve question mark on empty query Link
  • Static Export > Render via browser > should not add trailing slash on Link when disabled
  • Static Export > Render via browser > should do navigations via Link
  • Static Export > Render via browser > should do navigations via Router
  • Static Export > Render via browser > should do run client side javascript
  • Static Export > Render via browser > should render pages using getInitialProps
  • Static Export > Render via browser > should render dynamic pages with custom urls
  • Static Export > Render via browser > should support client side naviagtion
  • Static Export > Render via browser > should render dynamic import components in the client
  • Static Export > Render via browser > should render pages with url hash correctly
  • Static Export > Render via browser > should navigate even if used a button inside
  • Static Export > Render via browser > should update query after mount
  • Static Export > Render via browser > pages in the nested level: level1 > should render the home page
  • Static Export > Render via browser > pages in the nested level: level1 > should render the about page
Expand output

● Static Export › should delete existing exported files

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › should honor exportTrailingSlash for 404 page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › should handle trailing slash in getStaticPaths

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › should only output 404.html without exportTrailingSlash

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › should not duplicate /index with exportTrailingSlash

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render the home page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render the about page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render links correctly

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render a page with getInitialProps

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render a dynamically rendered custom url page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render pages with dynamic imports

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render paths with extensions

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should give empty object for query if there is no query

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render _error on 404.html even if not provided in exportPathMap

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › should render _error on /404/index.html

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › Should serve static files

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › Should serve public files

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via SSR › Should render dynamic files with query

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should render the home page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should add trailing slash on Link

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should not add any slash on hash Link

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should preserve hash symbol on empty hash Link

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should preserve question mark on empty query Link

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should not add trailing slash on Link when disabled

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should do navigations via Link

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should do navigations via Router

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should do run client side javascript

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should render pages using getInitialProps

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should render dynamic pages with custom urls

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should support client side naviagtion

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should render dynamic import components in the client

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should render pages with url hash correctly

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should navigate even if used a button inside

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › should update query after mount

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the home page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render via browser › pages in the nested level: level1 › should render the about page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render in development mode › should render the home page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Render in development mode › should render pages only existent in exportPathMap page

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › ExportPathMap's query in development mode › should be present in ctx.query

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › ExportPathMap's query in development mode › should replace url query params in ctx.query when conflicting

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › ExportPathMap's query in development mode › should be merged with url query params in ctx.query

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › Dynamic routes export › Should throw error not matched route

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Static Export › API routes export › Should throw if a route is matched

command failed with code 1

  139 |         code !== 0
  140 |       ) {
> 141 |         return reject(new Error(`command failed with code ${code}`))
      |                       ^
  142 |       }
  143 |
  144 |       resolve({

  at ChildProcess.<anonymous> (lib/next-test-utils.js:141:23)

● Test suite failed to run

TypeError: Cannot read property '__app' of undefined

  317 |
  318 | export async function stopApp(server) {
> 319 |   if (server.__app) {
      |              ^
  320 |     await server.__app.close()
  321 |   }
  322 |   await promiseCall(server, 'close')

  at stopApp (lib/next-test-utils.js:319:14)
  at integration/export/test/index.test.js:85:7

test/integration/styled-jsx-plugin/test/index.test.js

  • styled-jsx using in node_modules > production mode > should serve a page correctly
Expand output

● styled-jsx using in node_modules › production mode › should serve a page correctly

FetchError: request to http://localhost:40533/ failed, reason: socket hang up

  at ClientRequest.<anonymous> (../node_modules/node-fetch/lib/index.js:1461:11)

@ijjk
Copy link
Member

ijjk commented Mar 26, 2021

Stats from current PR

Default Server Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 15.3s 16.5s ⚠️ +1.2s
nodeModulesSize 61.8 MB 61.8 MB ⚠️ +18.8 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.143 2.243 ⚠️ +0.1
/ avg req/sec 1166.56 1114.6 ⚠️ -51.96
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.39 1.449 ⚠️ +0.06
/error-in-render avg req/sec 1798.09 1725.18 ⚠️ -72.91
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-31f97ebd..2557.js gzip 13.3 kB 13.3 kB
778-be276ce6..765f.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-bdbd9e6..6cfe.js gzip 1.3 kB 1.3 kB
_error-b58c1..9b8e.js gzip 3.4 kB 3.4 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-d124373..c521.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 8.76 kB 8.76 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 609 B 609 B
link.html gzip 615 B 615 B
withRouter.html gzip 603 B 603 B
Overall change 1.83 kB 1.83 kB

Serverless Mode
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 18.6s 18.6s ⚠️ +9ms
nodeModulesSize 61.8 MB 61.8 MB ⚠️ +18.8 kB
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-31f97ebd..2557.js gzip 13.3 kB 13.3 kB
778-be276ce6..765f.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-bdbd9e6..6cfe.js gzip 1.3 kB 1.3 kB
_error-b58c1..9b8e.js gzip 3.4 kB 3.4 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-d124373..c521.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 8.76 kB 8.76 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Serverless bundles Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_error.js 1.34 MB 1.34 MB
404.html 2.76 kB 2.76 kB
500.html 2.75 kB 2.75 kB
amp.amp.html 10.6 kB 10.6 kB
amp.html 1.96 kB 1.96 kB
hooks.html 2.01 kB 2.01 kB
index.js 1.34 MB 1.34 MB
link.js 1.4 MB 1.4 MB ⚠️ +2 B
routerDirect.js 1.39 MB 1.39 MB
withRouter.js 1.39 MB 1.39 MB
Overall change 6.89 MB 6.89 MB ⚠️ +2 B

Webpack 5 Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
buildDuration 14.5s 15.1s ⚠️ +599ms
nodeModulesSize 61.8 MB 61.8 MB ⚠️ +18.8 kB
Page Load Tests Overall decrease ⚠️
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
/ failed reqs 0 0
/ total time (seconds) 2.039 2.074 ⚠️ +0.03
/ avg req/sec 1225.91 1205.28 ⚠️ -20.63
/error-in-render failed reqs 0 0
/error-in-render total time (seconds) 1.284 1.439 ⚠️ +0.16
/error-in-render avg req/sec 1946.41 1737.53 ⚠️ -208.88
Client Bundles (main, webpack, commons)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
597-31f97ebd..2557.js gzip 13.3 kB 13.3 kB
778-be276ce6..765f.js gzip 7.05 kB 7.05 kB
framework.HASH.js gzip 39.3 kB 39.3 kB
main-HASH.js gzip 151 B 151 B
webpack-HASH.js gzip 993 B 993 B
Overall change 60.8 kB 60.8 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
polyfills-HASH.js gzip 31.1 kB 31.1 kB
Overall change 31.1 kB 31.1 kB
Client Pages
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_app-bdbd9e6..6cfe.js gzip 1.3 kB 1.3 kB
_error-b58c1..9b8e.js gzip 3.4 kB 3.4 kB
amp-89a5460c..567f.js gzip 558 B 558 B
hooks-8c2e74..be37.js gzip 924 B 924 B
index-fec729..83b2.js gzip 243 B 243 B
link-d124373..c521.js gzip 1.66 kB 1.66 kB
routerDirect..5759.js gzip 336 B 336 B
withRouter-1..98bf.js gzip 334 B 334 B
Overall change 8.76 kB 8.76 kB
Client Build Manifests
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
_buildManifest.js gzip 349 B 349 B
Overall change 349 B 349 B
Rendered Page Sizes
vercel/next.js canary Divlo/next.js build-deps/update-styled-jsx Change
index.html gzip 609 B 609 B
link.html gzip 615 B 615 B
withRouter.html gzip 603 B 603 B
Overall change 1.83 kB 1.83 kB

Diffs

Diff for index.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/",
         "query": {},
-        "buildId": "dbVRbHwiWhCYlwvLsaJqS",
+        "buildId": "Cn8dmqzrMZnXo6d-ybpzp",
         "isFallback": false,
         "gip": true
       }
@@ -86,11 +86,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_buildManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_ssgManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for link.html
@@ -53,7 +53,7 @@
         "props": { "pageProps": {} },
         "page": "/link",
         "query": {},
-        "buildId": "dbVRbHwiWhCYlwvLsaJqS",
+        "buildId": "Cn8dmqzrMZnXo6d-ybpzp",
         "isFallback": false,
         "gip": true
       }
@@ -91,11 +91,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_buildManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_ssgManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_ssgManifest.js"
       async=""
     ></script>
   </body>
Diff for withRouter.html
@@ -48,7 +48,7 @@
         "props": { "pageProps": {} },
         "page": "/withRouter",
         "query": {},
-        "buildId": "dbVRbHwiWhCYlwvLsaJqS",
+        "buildId": "Cn8dmqzrMZnXo6d-ybpzp",
         "isFallback": false,
         "gip": true
       }
@@ -86,11 +86,11 @@
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_buildManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_buildManifest.js"
       async=""
     ></script>
     <script
-      src="/_next/static/dbVRbHwiWhCYlwvLsaJqS/_ssgManifest.js"
+      src="/_next/static/Cn8dmqzrMZnXo6d-ybpzp/_ssgManifest.js"
       async=""
     ></script>
   </body>
Commit: 0612dc2

Copy link
Member

@timneutkens timneutkens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can't be landed with failing tests: #21650 (comment)

@theoludwig
Copy link
Contributor Author

Right, I will close this PR since I don't know what broke the tests and to solve them.

Hopefully someone would be able to upgrade to latest version of styled-jsx.

@theoludwig theoludwig closed this May 5, 2021
@theoludwig theoludwig deleted the build-deps/update-styled-jsx branch May 5, 2021 15:10
@vercel vercel locked as resolved and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
create-next-app Related to our CLI tool for quickly starting a new Next.js application. examples Issue was opened via the examples template. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants