next.js/test/development/app-dir/cache-components-reused-promise/cache-components-reused-promise.test.ts
cache-components-reused-promise.test.ts13 lines373 B
import { nextTestSetup } from 'e2e-utils'

describe('cache-components-dev-warmup - reused promise', () => {
  const { next } = nextTestSetup({
    files: __dirname,
  })

  it('aborts dynamic promises when restarting the render', async () => {
    const browser = await next.browser('/')
    expect(await browser.elementByCss('#random').text()).toMatch(/\d+\.\d+/)
  })
})
Quest for Codev2.0.0
/
SIGN IN