Skip to content

Commit

Permalink
test: apparently there's some quotes sometimes. great
Browse files Browse the repository at this point in the history
  • Loading branch information
lubieowoce committed May 8, 2024
1 parent 3a48780 commit 8e2a9ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/e2e/app-dir/next-after/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ describe('unstable_after()', () => {
'/invalid-in-client'
)
try {
expect(await session.getRedboxSource(true)).toContain(
`You're importing a component that needs next/server. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component.`
expect(await session.getRedboxSource(true)).toMatch(
/You're importing a component that needs "?next\/server"?\. That only works in a Server Component but one of its parents is marked with "use client", so it's a Client Component\./
)
expect(getLogs()).toHaveLength(0)
} finally {
Expand Down Expand Up @@ -273,8 +273,8 @@ describe('unstable_after()', () => {
)

try {
expect(await session.getRedboxSource(true)).toContain(
`You're importing a component that needs next/server. That only works in a Server Component which is not supported in the pages/ directory.`
expect(await session.getRedboxSource(true)).toMatch(
/You're importing a component that needs "?next\/server"?\. That only works in a Server Component which is not supported in the pages\/ directory\./
)
expect(getLogs()).toHaveLength(0)
} finally {
Expand Down

0 comments on commit 8e2a9ad

Please sign in to comment.