Skip to content

Commit

Permalink
test: convert demo-config to .ts
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 8, 2023
1 parent 178d4ac commit cc74532
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/boot/test/bootstrapTests/test-demo-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ import type { TestFn } from 'ava';

const { keys } = Object;

type DefaultTestContext = Awaited<ReturnType<typeof makeDefaultTestContext>>;

const test: TestFn<DefaultTestContext> = anyTest;

const makeDefaultTestContext = async t => {
const swingsetTestKit = await makeSwingsetTestKit(t, 'bundles/demo-config', {
configSpecifier: '@agoric/vm-config/decentral-demo-config.json',
});
return swingsetTestKit;
};

type DefaultTestContext = Awaited<ReturnType<typeof makeDefaultTestContext>>;

const test: TestFn<DefaultTestContext> = anyTest;

test.before(async t => (t.context = await makeDefaultTestContext(t)));
test.after.always(t => t.context.shutdown?.());

Expand Down

0 comments on commit cc74532

Please sign in to comment.