File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
packages/cli/src/__tests__/smoke Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -12,21 +12,21 @@ import fs from 'fs-extra';
1212const projectRoot = process . cwd ( ) ;
1313
1414describe ( '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' , ( ) => {
You can’t perform that action at this time.
0 commit comments