silverwolf-x/project / test /development /app-dir /multiple-compiles-single-route /multiple-compiles-single-route.test.ts
silverwolf-x's picture
download
raw
589 Bytes
import { nextTestSetup } from 'e2e-utils'
describe('multiple-compiles-single-route', () => {
const { next } = nextTestSetup({
files: __dirname,
})
// Recommended for tests that check HTML. Cheerio is a HTML parser that has a jQuery like API.
it('should not compile additional matching paths', async () => {
const logs: string[] = []
next.on('stdout', (log) => {
logs.push(log)
})
await next.render('/about')
// Check if `/[slug]` is mentioned in the logs as being compiled
expect(logs.some((log) => log.includes('/[slug]'))).toBe(false)
})
})

Xet Storage Details

Size:
589 Bytes
·
Xet hash:
a68573d61e663d927e52086f0ca7ae3f44b7bf8ba534dcef0a81d4eef45b9aac

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