website refactor
This commit is contained in:
@@ -44,8 +44,8 @@ export function createTestContainer(overrides: Map<symbol, any> = new Map()): Co
|
||||
const container = createContainer();
|
||||
|
||||
// Apply mock overrides using rebind
|
||||
const promises = Array.from(overrides.entries()).map(([token, mockInstance]) => {
|
||||
return container.rebind(token).then(bind => bind.toConstantValue(mockInstance));
|
||||
Array.from(overrides.entries()).forEach(([token, mockInstance]) => {
|
||||
container.rebind(token).then(bind => bind.toConstantValue(mockInstance));
|
||||
});
|
||||
|
||||
// Return container immediately, mocks will be available after promises resolve
|
||||
|
||||
Reference in New Issue
Block a user