Buckets:
| import { nextTestSetup } from 'e2e-utils' | |
| describe('css-chunking', () => { | |
| const { next } = nextTestSetup({ files: __dirname }) | |
| // this test asserts that all the emitted CSS files for the index page | |
| // do not contain styles for the `/other` page, which can happen | |
| // when the CSSChunkingPlugin is enabled and styles are shared across | |
| // both routes. | |
| ;(process.env.IS_TURBOPACK_TEST ? it.skip : it)( | |
| 'should be possible to disable the chunking plugin', | |
| async () => { | |
| const $ = await next.render$('/') | |
| const stylesheets = $('link[rel="stylesheet"]') | |
| stylesheets.each(async (_, element) => { | |
| const href = element.attribs.href | |
| const result = await next.fetch(href) | |
| const css = await result.text() | |
| // eslint-disable-next-line jest/no-standalone-expect | |
| expect(css).not.toContain('.otherPage') | |
| }) | |
| } | |
| ) | |
| }) | |
Xet Storage Details
- Size:
- 890 Bytes
- Xet hash:
- 2aa5217e351146528d489cac0e184d20d135f50f62c37158e39e9a8107f5ac23
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.