jest-environment-knex
v3.0.7
Published
[](https://github.com/SocialGouv/jest-environment-knex/actions/) [ => {
await knex.migrate.latest();
await knex.seed.run();
});
test("should list all tables", async () => {
const query = `
SELECT table_name FROM information_schema.tables
WHERE table_schema = current_schema() AND table_catalog = ?
`;
const results = await knex.raw(query, [knex.client.database()]);
expect(results.rows.map((row) => row.table_name).sort()).toMatchSnapshot();
});Release policy
Releases are automaticly made through our GitHub Actions strictly following the Semantic Versioning specification thanks to semantic-release.
