Skip to content

Commit

Permalink
Change call to import(), return actual promise instead of awaiting
Browse files Browse the repository at this point in the history
  • Loading branch information
aedart committed Oct 5, 2024
1 parent 9936b10 commit 25c3a1c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ describe('@aedart/config', () => {
// returned from Webpack, which could already have the env() calls resolved.
// const result = await resolver.resolve((await import('../fixtures/my-env-config'))?.default);

const result = await resolver.resolve((await import('../fixtures/my-other-env-config'))?.default);
// const result = await resolver.resolve((await import('../fixtures/my-other-env-config'))?.default);
const result = await resolver.resolve(
import('../fixtures/my-other-env-config')
.then((module) => module.default)
);

expect(Reflect.has(result, 'app'))
.withContext('"app" item not resolved')
Expand Down

0 comments on commit 25c3a1c

Please sign in to comment.