Skip to content

Commit 64974b6

Browse files
committed
test: update
1 parent 436a330 commit 64974b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default { fetch: handler };
178178
const vendorChunks: Rollup.OutputChunk[] = [];
179179
for (const chunk of Object.values(bundle)) {
180180
if (chunk.type === "chunk") {
181-
if (chunk.facadeModuleId === "\0virtual:vite-rsc/entry-browser") {
181+
if (chunk.name === "index") {
182182
entryChunks.push(chunk);
183183
} else if (chunk.name === "lib-react") {
184184
vendorChunks.push(chunk);
@@ -187,7 +187,7 @@ export default { fetch: handler };
187187
}
188188

189189
// react vendor chunk has no import
190-
assert(vendorChunks.length === 1);
190+
assert.equal(vendorChunks.length, 1);
191191
assert.deepEqual(
192192
vendorChunks[0].imports.filter(
193193
(f) => !f.includes("rolldown-runtime"),
@@ -197,7 +197,7 @@ export default { fetch: handler };
197197
assert.deepEqual(vendorChunks[0].dynamicImports, []);
198198

199199
// entry chunk has no export
200-
assert(entryChunks.length === 1);
200+
assert.equal(entryChunks.length, 1);
201201
assert.deepEqual(entryChunks[0].exports, []);
202202
}
203203
},

0 commit comments

Comments
 (0)