silverwolf-x/project / test /e2e /app-dir /cache-components-errors /cache-components-unstable-deprecations.test.ts
silverwolf-x's picture
download
raw
1.13 kB
import { isNextDev, nextTestSetup } from 'e2e-utils'
describe('Cache Components Errors', () => {
const { next, skipped } = nextTestSetup({
files: __dirname + '/fixtures/unstable-deprecations',
})
if (skipped) {
return
}
describe('Deprecating `unstable` prefix for `cacheLife` and `cacheTag`', () => {
it('warns if you use `cacheLife` through `unstable_cacheLife`', async () => {
if (isNextDev) {
await next.browser('/life')
expect(next.cliOutput).toContain(
'Error: `unstable_cacheLife` was recently stabilized'
)
} else {
expect(next.cliOutput).toContain(
'Error: `unstable_cacheLife` was recently stabilized'
)
}
})
it('warns if you use `cacheTag` through `unstable_cacheTag`', async () => {
if (isNextDev) {
await next.browser('/tag')
expect(next.cliOutput).toContain(
'Error: `unstable_cacheTag` was recently stabilized'
)
} else {
expect(next.cliOutput).toContain(
'Error: `unstable_cacheTag` was recently stabilized'
)
}
})
})
})

Xet Storage Details

Size:
1.13 kB
·
Xet hash:
769baef449992d2e16e58ad8905ff8766c67356599c9274b08b2e783cba18fc7

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.