Skip to content

Commit 74cbe31

Browse files
committed
test: wip renderBuiltUrl runtime
1 parent 3eda709 commit 74cbe31

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

packages/plugin-rsc/e2e/starter.test.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ test.describe(() => {
249249
const root = 'examples/e2e/temp/renderBuiltUrl-runtime'
250250

251251
test.beforeAll(async () => {
252+
// TODO: test `globalThis`-based dynamic base
253+
// TODO: test client shared chunk
254+
const renderBuiltUrl = (filename: string) => {
255+
return {
256+
runtime: `"/" + ${JSON.stringify(filename)}`,
257+
}
258+
};
252259
await setupInlineFixture({
253260
src: 'examples/starter',
254261
dest: root,
@@ -270,11 +277,7 @@ test.describe(() => {
270277
}),
271278
],
272279
experimental: {
273-
renderBuiltUrl(filename) {
274-
return {
275-
runtime: \`'/' + \${JSON.stringify(filename)}\`
276-
}
277-
}
280+
renderBuiltUrl: ${renderBuiltUrl.toString()}
278281
}
279282
})
280283
`,

0 commit comments

Comments
 (0)