Skip to content

Commit 07bb33a

Browse files
fix: update loader test to reflect new outputPath behaviour for functions
1 parent c5d98bc commit 07bb33a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/app/src/cli/models/app/loader.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,8 +2249,8 @@ describe('load', () => {
22492249
// When
22502250
const app = await loadTestingApp()
22512251

2252-
// Then
2253-
expect(app.allExtensions[0]!.outputPath).toMatch(/wasm32-wasi\/release\/my-function.wasm/)
2252+
// Then - outputPath always defaults to dist/index.wasm at load time; build.path is applied by buildFunctionExtension
2253+
expect(app.allExtensions[0]!.outputPath).toMatch(/dist\/index\.wasm/)
22542254
})
22552255

22562256
test(`defaults the function wasm path if not configured`, async () => {

0 commit comments

Comments
 (0)