Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed Jun 20, 2024
1 parent bf4bfa2 commit fcf8994
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/test/__snapshots__/generated.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ exports[`generated client > should produce consistent output code 3`] = `
"import { ClientDescriptorOptions } from "./client.js";
export * from "./client.js";
import schema from "./schema.js";
import oldSchemas from "./schemaVersions/index.js";
import { ClientDescriptor as StorageDescriptor } from "./client.js";
import migrations from "../migrations/index.js";
export * from "@verdant-web/store";
Expand All @@ -385,10 +386,12 @@ export class ClientDescriptor<
constructor(init: ClientDescriptorOptions<Presence, Profile>) {
const defaultedSchema = init.schema || schema;
const defaultedMigrations = init.migrations || migrations;
const defaultedOldSchemas = init.oldSchemas || oldSchemas;
super({
...init,
schema: defaultedSchema,
migrations: defaultedMigrations,
oldSchemas: defaultedOldSchemas,
});
}
}
Expand Down

0 comments on commit fcf8994

Please sign in to comment.