diff --git a/packages/boot/test/bootstrapTests/test-demo-config.ts b/packages/boot/test/bootstrapTests/test-demo-config.ts index bfa67b0c6614..2975799190b0 100644 --- a/packages/boot/test/bootstrapTests/test-demo-config.ts +++ b/packages/boot/test/bootstrapTests/test-demo-config.ts @@ -8,10 +8,6 @@ import type { TestFn } from 'ava'; const { keys } = Object; -type DefaultTestContext = Awaited>; - -const test: TestFn = anyTest; - const makeDefaultTestContext = async t => { const swingsetTestKit = await makeSwingsetTestKit(t, 'bundles/demo-config', { configSpecifier: '@agoric/vm-config/decentral-demo-config.json', @@ -19,6 +15,10 @@ const makeDefaultTestContext = async t => { return swingsetTestKit; }; +type DefaultTestContext = Awaited>; + +const test: TestFn = anyTest; + test.before(async t => (t.context = await makeDefaultTestContext(t))); test.after.always(t => t.context.shutdown?.());