Skip to content

Commit e8b44dd

Browse files
committed
Chain it in a different way
1 parent 9cfba58 commit e8b44dd

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

examples/yjs/sst.config.ts

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,18 @@ export default $config({
6161
},
6262
})
6363

64-
const testOutput = command.local.runOutput({
65-
command: `pnpm test:browser`,
66-
dir: `../../`,
67-
environment: {
68-
BASE_URL: $dev ? `http://localhost:5173` : service.url,
69-
70-
// chain test to the service itself
71-
SERVICE_NAME: service.service,
72-
},
73-
})
64+
const testOutput = $resolve([
65+
service.url,
66+
service.nodes.taskDefinition.arn,
67+
]).apply(([url, ..._rest]) =>
68+
command.local.runOutput({
69+
command: `pnpm test:browser`,
70+
dir: `../../`,
71+
environment: {
72+
BASE_URL: $dev ? `http://localhost:5173` : url,
73+
},
74+
})
75+
)
7476

7577
return {
7678
website: testOutput.apply(() => service.url),

0 commit comments

Comments
 (0)