Skip to content

Commit e570135

Browse files
committed
Adjust test expectation for prod
1 parent 7d5db16 commit e570135

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/e2e/app-dir/actions/app-action.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ describe('app-dir action handling', () => {
8585
expect.arrayContaining([
8686
expect.objectContaining({
8787
message: expect.stringContaining(
88-
'Cannot access value on the server.'
88+
isNextDev
89+
? 'Cannot access value on the server.'
90+
: GENERIC_RSC_ERROR.replace(/^Error: /, '')
8991
),
9092
}),
9193
])

0 commit comments

Comments
 (0)