Skip to content

Commit

Permalink
Make configOverrides singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
lokankr committed Sep 12, 2023
1 parent 95ef803 commit a163716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/TestContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import merge from 'ts-deepmerge'
import type { Config } from '../src/infrastructure/config'
import { getConfig } from '../src/infrastructure/config'
import type { DependencyOverrides } from '../src/infrastructure/diConfig'
import { registerDependencies } from '../src/infrastructure/diConfig'
import { SINGLETON_CONFIG, registerDependencies } from '../src/infrastructure/diConfig'

type NestedPartial<T> = {
[P in keyof T]?: NestedPartial<T[P]>
Expand Down Expand Up @@ -38,7 +38,7 @@ export function createTestContext(
...dependencyOverrides,
config: asFunction(() => {
return merge(getConfig(), configOverrides)
}),
}, SINGLETON_CONFIG),
}
: dependencyOverrides

Expand Down

0 comments on commit a163716

Please sign in to comment.