Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to fail with pg #119

Closed
head-gardener opened this issue Aug 19, 2022 · 5 comments
Closed

Seems to fail with pg #119

head-gardener opened this issue Aug 19, 2022 · 5 comments

Comments

@head-gardener
Copy link

const client = await esmock(
  '../src/client.ts',
  {
    'pg': {
      Pool: (config:any) => {
      },
    },
  },
);

Results in a

Error: not a valid path: "pg" (used by
.../test/client.ts)
@iambumblehead
Copy link
Owner

thanks for finding and sharing this issue. I'll try to resolve it

@iambumblehead
Copy link
Owner

the resolver test is passing now iambumblehead/resolvewithplus#32

the resolver is soon to get a big update and its great to add this extra test case there

@iambumblehead
Copy link
Owner

@TrashBinNp2019 would you verify if the published solution resolves the issue for you? https://github.com/iambumblehead/esmock/releases/tag/v1.9.5

@head-gardener
Copy link
Author

Yup, all is good. Thanks a lot for quick response. Closing

@head-gardener
Copy link
Author

head-gardener commented Oct 11, 2022 via email

BadIdeaException added a commit to quartersbrief/quartersbrief that referenced this issue Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants