Skip to content

Commit

Permalink
fixup(frontend): fix variant factory typing to get typecheck passing
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Apr 8, 2024
1 parent aae9fa4 commit 33406ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion browser/src/VariantList/mergeExomeAndGenomeData.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe('mergeExomeAndGenomePopulationData', () => {
{ id: 'eur', value: 4 },
])

// @ts-expect-error
const testVariant = variantFactory.build({
variant_id: 'test_variant',
exome: { populations: geneticAncestryGroupObjects },
Expand Down
6 changes: 4 additions & 2 deletions browser/src/__factories__/Variant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export const variantFactory = Factory.define<Variant>(({ params, associations })
const {
exome = null,
genome = null,
joint = null,
non_coding_constraint = null,
clinvar = null,
coverage = { exome: null, genome: null },
Expand All @@ -110,6 +111,7 @@ export const variantFactory = Factory.define<Variant>(({ params, associations })
clinvar,
exome,
genome,
joint,
lof_curations,
in_silico_predictors,
non_coding_constraint,
Expand Down Expand Up @@ -195,8 +197,8 @@ export const sequencingFactory = Factory.define<SequencingType>(({ params, assoc
const {
ac = 1,
an = 1,
homozygote_count = null,
hemizygote_count = null,
homozygote_count = 0,
hemizygote_count = 0,
filters = [],
populations = [],
local_ancestry_populations = [],
Expand Down

0 comments on commit 33406ea

Please sign in to comment.