pgsqwell-mock

March 20, 2026 ยท View on GitHub

pgsqwell-mock

Mocks pgsqwell and check queries syntax

GitHub license

A simple mock for pgsqwell validating your queries.

Sample usage

With Jest:

// ES6 usage
import main, * as all from 'pgsqwell-mock';

jest.unstable_mockModule('pgsqwell', async () => {
  return {
    ...all,
    default: main,
  };
});

// Need to be dynamically imported for pgsqwell
// to be properly mocked
const { default: myTestedModule } = await import('./myTestedModule.js');

Authors

License

MIT