Commit 84f0091b authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

fix test

parent 692da957
...@@ -12,33 +12,36 @@ describe('next build --debug', () => { ...@@ -12,33 +12,36 @@ describe('next build --debug', () => {
output = stripAnsi(next.cliOutput) output = stripAnsi(next.cliOutput)
}) })
const str = ` it('should log Redirects above Route(app)', async () => {
let data = output
.slice(output.indexOf('Redirects\n'), output.indexOf('○ (Static)'))
.trim()
Redirects expect(data).toMatchInlineSnapshot(`
┌ source: /:path+/ "Redirects
├ destination: /:path+ ┌ source: /:path+/
└ permanent: true ├ destination: /:path+
└ permanent: true
┌ source: /redirects ┌ source: /redirects
├ destination: / ├ destination: /
└ permanent: true └ permanent: true
Headers Headers
┌ source: / ┌ source: /
└ headers: └ headers:
└ x-custom-headers: headers └ x-custom-headers: headers
Rewrites Rewrites
┌ source: /rewrites ┌ source: /rewrites
└ destination: / └ destination: /
Route (app)` Route (app)
┌ ○ /
it('should log Redirects above Route(app)', async () => { └ ○ /_not-found"
expect(output).toContain(str) `)
}) })
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment