Skip to content

Commit 941461b

Browse files
path fix
1 parent 234afce commit 941461b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/cli/src/__tests__/smoke/production.smoke.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ import fs from 'fs-extra';
1212
const projectRoot = process.cwd();
1313

1414
describe('Production Smoke Tests', () => {
15-
// Output path is now convention-based: ./dist/bundle.mjs for server
16-
const bundlePath = join(projectRoot, 'examples/dist/bundle.mjs');
15+
// Output path is convention-based: ./dist/bundle.mjs relative to cwd
16+
const bundlePath = join(projectRoot, 'dist/bundle.mjs');
1717

1818
beforeAll(async () => {
1919
// Ensure the dist directory exists
20-
await fs.ensureDir(join(projectRoot, 'examples/dist'));
20+
await fs.ensureDir(join(projectRoot, 'dist'));
2121
// Create fresh bundle from Flow.Setup config
2222
await bundle(join(projectRoot, 'examples/server-collect.json'), {
2323
silent: true,
2424
});
2525
}, 120000);
2626

2727
afterAll(async () => {
28-
// Clean up the dist directory
29-
await fs.remove(join(projectRoot, 'examples/dist')).catch(() => {});
28+
// Clean up the generated bundle
29+
await fs.remove(join(projectRoot, 'dist/bundle.mjs')).catch(() => {});
3030
});
3131

3232
it('bundle should exist and be non-empty', () => {

0 commit comments

Comments
 (0)