Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { nextTestSetup } from 'e2e-utils'
import stripAnsi from 'strip-ansi'
describe('next build --debug', () => {
const { next } = nextTestSetup({
files: __dirname,
buildCommand: 'pnpm next build --debug',
})
let output = ''
beforeAll(() => {
output = stripAnsi(next.cliOutput)
})
const str = `
Redirects
β”Œ source: /:path+/
β”œ destination: /:path+
β”” permanent: true
β”Œ source: /redirects
β”œ destination: /
β”” permanent: true
Headers
β”Œ source: /
β”” headers:
β”” x-custom-headers: headers
Rewrites
β”Œ source: /rewrites
β”” destination: /
Route (app)`
it('should log Redirects above Route(app)', async () => {
expect(output).toContain(str)
})
})