How to use the mock-knex.unmock function in mock-knex

To help you get started, we’ve selected a few mock-knex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / types / mock-knex / mock-knex-tests.ts View on Github external
query.response([{
			a: 1
		}, {
			a: 2
		}, {
			a: 3
		}], {
			stream: false
		});
	} else {
		query.reject(new Error("bad query"));
	}
});
tracker.uninstall();

mockDb.unmock(db);

mock-knex

a knex mock adapter for simulating a db during testing

MIT
Latest version published 10 months ago

Package Health Score

64 / 100
Full package analysis