Skip to content

Commit 4590e8f

Browse files
fix test fixture path
1 parent 3b15594 commit 4590e8f

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

packages/integrations/cloudflare/test/custom-entryfile.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('Custom entry file', () => {
1111
});
1212
await fixture.build();
1313
const root = new URL('./fixtures/custom-entryfile/', import.meta.url);
14-
const filePath = fileURLToPath(new URL('dist/_worker.js', root));
14+
const filePath = fileURLToPath(new URL('dist/server', root));
1515
const hasBuilt = existsSync(filePath);
1616
assert.equal(hasBuilt, true, `Expected ${filePath} to exist after build`);
1717
});

packages/integrations/cloudflare/test/external-image-service.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ describe('ExternalImageService', () => {
2323

2424
it('has correct image service', async () => {
2525
const files = await glob('**/image-service*', {
26-
cwd: fileURLToPath(new URL('dist/_worker.js', root)),
26+
cwd: fileURLToPath(new URL('dist/server', root)),
2727
filesOnly: true,
2828
absolute: true,
2929
flush: true,

packages/integrations/cloudflare/test/fixtures/vite-plugin/astro.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ export default defineConfig({
1212
sessionKVBindingName: "SESSION"
1313
}),
1414
build: {
15-
inlineStylesheets: 'never'
15+
inlineStylesheets: 'never',
16+
client: './',
17+
server: './_worker.js',
1618
},
1719
vite: {
1820
resolve: {

pnpm-lock.yaml

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)