Skip to content

Commit 234afce

Browse files
test tmp
1 parent 4e45c71 commit 234afce

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/cli/src/__tests__/config-loader.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ describe('Config Loader', () => {
7171
expect(result.buildOptions.format).toBe('iife');
7272
expect(result.buildOptions.target).toBe('es2020');
7373
expect(result.buildOptions.minify).toBe(true);
74-
// Output path is resolved relative to config file directory
75-
expect(result.buildOptions.output).toBe('/test/dist/walker.js');
74+
// Output path is static (relative to cwd)
75+
expect(result.buildOptions.output).toBe('./dist/walker.js');
7676
});
7777

7878
test('applies platform-specific defaults for server', () => {
@@ -94,8 +94,8 @@ describe('Config Loader', () => {
9494
expect(result.buildOptions.format).toBe('esm');
9595
expect(result.buildOptions.target).toBe('node20');
9696
expect(result.buildOptions.minify).toBe(true);
97-
// Output path is resolved relative to config file directory
98-
expect(result.buildOptions.output).toBe('/test/dist/bundle.mjs');
97+
// Output path is static (relative to cwd)
98+
expect(result.buildOptions.output).toBe('./dist/bundle.mjs');
9999
});
100100

101101
test('extracts packages from flowConfig', () => {
@@ -461,8 +461,8 @@ describe('Config Loader', () => {
461461
'@walkeros/[email protected]',
462462
);
463463
expect(result.buildOptions.minify).toBe(true);
464-
// Output uses convention default
465-
expect(result.buildOptions.output).toBe('/test/dist/walker.js');
464+
// Output is static (relative to cwd)
465+
expect(result.buildOptions.output).toBe('./dist/walker.js');
466466
});
467467

468468
test('extracts windowCollector and windowElb from web config', () => {

packages/cli/src/__tests__/integration/bundle-run.integration.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ const projectRoot = process.cwd();
1313

1414
describe('Bundle → Run Integration', () => {
1515
const testDir = join(projectRoot, '.tmp/integration-tests');
16-
// Output path is now convention-based: ./dist/bundle.mjs for server
17-
const bundlePath = join(projectRoot, 'examples/dist/bundle.mjs');
16+
// Output path is now static: ./dist/bundle.mjs relative to cwd
17+
const bundlePath = join(projectRoot, 'dist/bundle.mjs');
1818

1919
beforeAll(async () => {
2020
await fs.ensureDir(testDir);
2121
// Ensure the dist directory exists
22-
await fs.ensureDir(join(projectRoot, 'examples/dist'));
22+
await fs.ensureDir(join(projectRoot, 'dist'));
2323
});
2424

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

3131
it('should create functional bundle from config', async () => {

0 commit comments

Comments
 (0)