Commit ea453ea6 authored by Janka Uryga's avatar Janka Uryga

test: Cache environment works now, somehow

parent 2e978933
...@@ -74,7 +74,7 @@ describe('use-cache-errors', () => { ...@@ -74,7 +74,7 @@ describe('use-cache-errors', () => {
await expect(browser).toDisplayRedbox(` await expect(browser).toDisplayRedbox(`
{ {
"description": "kaputt!", "description": "kaputt!",
"environmentLabel": "Prerender", "environmentLabel": "Cache",
"label": "Runtime Error", "label": "Runtime Error",
"source": "app/anonymous/page.tsx (4:11) @ eval "source": "app/anonymous/page.tsx (4:11) @ eval
> 4 | throw new Error('kaputt!') > 4 | throw new Error('kaputt!')
......
...@@ -153,9 +153,7 @@ describe('use-cache-hanging-inputs', () => { ...@@ -153,9 +153,7 @@ describe('use-cache-hanging-inputs', () => {
expect({ count, title, description }).toEqual({ expect({ count, title, description }).toEqual({
count: 1, count: 1,
// TODO(restart-on-cache-miss): fix environment labelling title: 'Runtime Error\nCache',
// title: 'Runtime Error\nCache',
title: 'Runtime Error\nPrerender',
description: 'kaputt!', description: 'kaputt!',
}) })
}) })
......
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