Skip to content

Commit ac3a154

Browse files
committed
test: debug
1 parent edefaf9 commit ac3a154

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packages/plugin-rsc/examples/basic/vite.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,20 @@ export default defineConfig({
107107
'src/routes/browser-only/browser-dep.tsx',
108108
)
109109
if (this.environment.name === 'client') {
110-
assert(moduleIds.includes(browserId))
110+
assert(
111+
moduleIds.includes(browserId),
112+
`Expected browser-only module '${browserId}' be included in client build, but got: ${moduleIds.join(
113+
', ',
114+
)}`,
115+
)
111116
}
112117
if (this.environment.name === 'ssr') {
113-
assert(!moduleIds.includes(browserId))
118+
assert(
119+
!moduleIds.includes(browserId),
120+
`Expected browser-only module '${browserId}' be included in client build, but got: ${moduleIds.join(
121+
', ',
122+
)}`,
123+
)
114124
}
115125
},
116126
},

0 commit comments

Comments
 (0)