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

make sure "webpack" exists in the repo for typings #30371

Merged
merged 5 commits into from
Oct 29, 2021
Merged

Conversation

sokra
Copy link
Member

@sokra sokra commented Oct 26, 2021

fixes "yarn types" needed before "yarn dev"
use incremental typescript for next package

shuding
shuding previously approved these changes Oct 26, 2021
styfle
styfle previously approved these changes Oct 26, 2021
@github-actions github-actions bot dismissed stale reviews from styfle and shuding via 0ab430a October 26, 2021 21:06
@ijjk

This comment has been minimized.

@ijjk

This comment has been minimized.

@sokra sokra marked this pull request as draft October 26, 2021 21:31
fixes "yarn types" needed before "yarn dev"
use incremental typescript for next package
@sokra sokra marked this pull request as ready for review October 26, 2021 21:56
@ijjk

This comment has been minimized.

@ijjk

This comment has been minimized.

@sokra sokra changed the title add webpack to devDependencies make sure "webpack" exists in the repo for typings Oct 27, 2021
@ijjk

This comment has been minimized.

@ijjk

This comment has been minimized.

@ijjk
Copy link
Member

ijjk commented Oct 27, 2021

Failing test suites

Commit: e5b4057

test/e2e/prerender.test.ts

  • Prerender > should navigate between pages successfully
  • Prerender > should SSR normal page correctly
  • Prerender > should SSR incremental page correctly
  • Prerender > should SSR blocking path correctly (blocking)
  • Prerender > should SSR blocking path correctly (pre-rendered)
  • Prerender > should have gsp in NEXT_DATA
  • Prerender > should not have gsp in NEXT_DATA for non-GSP page
  • Prerender > should not supply query values to params or useRouter non-dynamic page SSR
  • Prerender > should not supply query values to params in /_next/data request
  • Prerender > should not supply query values to params or useRouter dynamic page SSR
  • Prerender > should return data correctly
  • Prerender > should return data correctly for dynamic page
  • Prerender > should return data correctly for dynamic page (non-seeded)
  • Prerender > should use correct caching headers for a revalidate page
  • Prerender > should navigate to a normal page and back
  • Prerender > should parse query values on mount correctly
  • Prerender > should reload page on failed data request
  • Prerender > should SSR dynamic page with brackets in param as object
  • Prerender > should navigate to dynamic page with brackets in param as object
  • Prerender > should SSR dynamic page with brackets in param as string
  • Prerender > should navigate to dynamic page with brackets in param as string
  • Prerender > should not return data for fallback: false and missing dynamic page
  • Prerender > should server prerendered path correctly for SSG pages that starts with api-docs
  • Prerender > should render correctly for SSG pages that starts with api-docs
  • Prerender > should return data correctly for SSG pages that starts with api-docs
  • Prerender > should SSR catch-all page with brackets in param as string
  • Prerender > should navigate to catch-all page with brackets in param as string
  • Prerender > should SSR catch-all page with brackets in param as object
  • Prerender > should navigate to catch-all page with brackets in param as object
  • Prerender > should support prerendered catchall route
  • Prerender > should support lazy catchall route
  • Prerender > should support nested lazy catchall route
  • Prerender > should support prerendered catchall-explicit route (nested)
  • Prerender > should support prerendered catchall-explicit route (single)
  • Prerender > should handle fallback only page correctly HTML
  • Prerender > should handle fallback only page correctly data
  • Prerender > should 404 for a missing catchall explicit route
  • Prerender > should 404 for an invalid data url
  • Prerender > should allow rewriting to SSG page with fallback: false
  • Prerender > should allow rewriting to SSG page with fallback: 'blocking'
  • Prerender > should fetch /_next/data correctly with mismatched href and as
  • Prerender > should not error when rewriting to fallback dynamic SSG page
  • Prerender > should use correct caching headers for a no-revalidate page
  • Prerender > should not show error for invalid JSON returned from getStaticProps on SSR
  • Prerender > should not show error for invalid JSON returned from getStaticProps on CST
  • Prerender > outputs dataRoutes in routes-manifest correctly
  • Prerender > outputs a prerender-manifest correctly
  • Prerender > outputs prerendered files correctly
  • Prerender > should handle de-duping correctly
  • Prerender > should not revalidate when set to false
  • Prerender > should not revalidate when set to false in blocking fallback mode
  • Prerender > should handle revalidating HTML correctly
  • Prerender > should handle revalidating JSON correctly
  • Prerender > should handle revalidating HTML correctly with blocking
  • Prerender > should handle revalidating JSON correctly with blocking
  • Prerender > should handle revalidating HTML correctly with blocking and seed
  • Prerender > should handle revalidating JSON correctly with blocking and seed
  • Prerender > should not fetch prerender data on mount
  • Prerender > should not error when flushing cache files
  • Prerender > should not have attempted sending invalid payload
  • Prerender > should of formatted build output correctly
  • Prerender > should output traces
Expand output

● Prerender › should navigate between pages successfully

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR normal page correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR incremental page correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR blocking path correctly (blocking)

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR blocking path correctly (pre-rendered)

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should have gsp in NEXT_DATA

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not have gsp in NEXT_DATA for non-GSP page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not supply query values to params or useRouter non-dynamic page SSR

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not supply query values to params in /_next/data request

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not supply query values to params or useRouter dynamic page SSR

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should return data correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should return data correctly for dynamic page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should return data correctly for dynamic page (non-seeded)

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should use correct caching headers for a revalidate page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should navigate to a normal page and back

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should parse query values on mount correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should reload page on failed data request

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR dynamic page with brackets in param as object

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should navigate to dynamic page with brackets in param as object

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR dynamic page with brackets in param as string

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should navigate to dynamic page with brackets in param as string

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not return data for fallback: false and missing dynamic page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should server prerendered path correctly for SSG pages that starts with api-docs

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should render correctly for SSG pages that starts with api-docs

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should return data correctly for SSG pages that starts with api-docs

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR catch-all page with brackets in param as string

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should navigate to catch-all page with brackets in param as string

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should SSR catch-all page with brackets in param as object

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should navigate to catch-all page with brackets in param as object

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should reload page on failed data request, and retry

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should support prerendered catchall route

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should support lazy catchall route

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should support nested lazy catchall route

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should support prerendered catchall-explicit route (nested)

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should support prerendered catchall-explicit route (single)

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle fallback only page correctly HTML

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle fallback only page correctly data

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should 404 for a missing catchall explicit route

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should 404 for an invalid data url

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should allow rewriting to SSG page with fallback: false

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should allow rewriting to SSG page with fallback: 'blocking'

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should fetch /_next/data correctly with mismatched href and as

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not error when rewriting to fallback dynamic SSG page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should use correct caching headers for a no-revalidate page

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not show error for invalid JSON returned from getStaticProps on SSR

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not show error for invalid JSON returned from getStaticProps on CST

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › outputs dataRoutes in routes-manifest correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › outputs a prerender-manifest correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › outputs prerendered files correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle de-duping correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not revalidate when set to false

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not revalidate when set to false in blocking fallback mode

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating HTML correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating JSON correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating HTML correctly with blocking

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating JSON correctly with blocking

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating HTML correctly with blocking and seed

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should handle revalidating JSON correctly with blocking and seed

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not fetch prerender data on mount

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not error when flushing cache files

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should not have attempted sending invalid payload

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should of formatted build output correctly

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Prerender › should output traces

thrown: "Exceeded timeout of 90000 ms for a hook.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  19 |   let next: NextInstance
  20 |
> 21 |   beforeAll(async () => {
     |   ^
  22 |     next = await createNext({
  23 |       files: {
  24 |         pages: new FileRef(join(__dirname, 'prerender/pages')),

  at e2e/prerender.test.ts:21:3
  at Object.<anonymous> (e2e/prerender.test.ts:18:1)

● Test suite failed to run

TypeError: Cannot read property 'destroy' of undefined

  48 |     })
  49 |   })
> 50 |   afterAll(() => next.destroy())
     |                       ^
  51 |
  52 |   function isCachingHeader(cacheControl) {
  53 |     return !cacheControl || !/no-store/.test(cacheControl)

  at e2e/prerender.test.ts:50:23

● Test suite failed to run

next instance not destroyed before exiting, make sure to call .destroy() after the tests after finished

  77 |     if (nextInstance) {
  78 |       await nextInstance.destroy()
> 79 |       throw new Error(
     |             ^
  80 |         `next instance not destroyed before exiting, make sure to call .destroy() after the tests after finished`
  81 |       )
  82 |     }

  at lib/e2e-utils.ts:79:13

test/integration/preload-viewport/test/index.test.js

  • Prefetching Links in viewport > should not prefetch already loaded scripts
Expand output

● Prefetching Links in viewport › should not prefetch already loaded scripts

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

Expected: false
Received: true

  397 |     expect(hrefs).toEqual([...new Set(hrefs)])
  398 |
> 399 |     // Verify encoding
      |     ^
  400 |     expect(hrefs.some((e) => e.includes(`%5Bhello%5D-`))).toBe(true)
  401 |   })
  402 |

  at Object.<anonymous> (integration/preload-viewport/test/index.test.js:399:5)

test/integration/create-next-app/index.test.js

  • create next app > empty directory
  • create next app > valid example
  • create next app > should support typescript flag
  • create next app > should fall back to default template
Expand output

● create next app › empty directory

thrown: "Exceeded timeout of 90000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  39 |   // stdin is piped instead of inherited on windows
  40 |   if (process.platform !== 'win32') {
> 41 |     it('empty directory', async () => {
     |     ^
  42 |       await usingTempDir(async (cwd) => {
  43 |         const projectName = 'empty-directory'
  44 |         const res = await run([projectName], { cwd })

  at integration/create-next-app/index.test.js:41:5
  at Object.<anonymous> (integration/create-next-app/index.test.js:24:1)

● create next app › valid example

thrown: "Exceeded timeout of 90000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  77 |   })
  78 |
> 79 |   it('valid example', async () => {
     |   ^
  80 |     await usingTempDir(async (cwd) => {
  81 |       const projectName = 'valid-example'
  82 |       const res = await run([projectName, '--example', 'basic-css'], { cwd })

  at integration/create-next-app/index.test.js:79:3
  at Object.<anonymous> (integration/create-next-app/index.test.js:24:1)

● create next app › should support typescript flag

thrown: "Exceeded timeout of 90000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

   99 |   })
  100 |
> 101 |   it('should support typescript flag', async () => {
      |   ^
  102 |     await usingTempDir(async (cwd) => {
  103 |       const projectName = 'typescript'
  104 |       const res = await run([projectName, '--typescript'], { cwd })

  at integration/create-next-app/index.test.js:101:3
  at Object.<anonymous> (integration/create-next-app/index.test.js:24:1)

● create next app › should fall back to default template

thrown: "Exceeded timeout of 90000 ms for a test.
Use jest.setTimeout(newTimeout) to increase the timeout value, if this is a long-running test."

  238 |   // stdin is piped instead of inherited on windows
  239 |   if (process.platform !== 'win32') {
> 240 |     it('should fall back to default template', async () => {
      |     ^
  241 |       await usingTempDir(async (cwd) => {
  242 |         const projectName = 'fail-example'
  243 |         const res = await run(

  at integration/create-next-app/index.test.js:240:5
  at Object.<anonymous> (integration/create-next-app/index.test.js:24:1)

@ijjk

This comment has been minimized.

This was referenced Nov 1, 2021
@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants