We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be63d18 commit b554684Copy full SHA for b554684
src/database/index.ts
@@ -1,5 +1,6 @@
1
import { DataSource } from 'typeorm';
2
3
+// @TODO: Use jest mocks instead of this crap
4
const AppDataSource = process.env.JEST_WORKER_ID ? getTestDataSource() : getAppDataSource();
5
6
async function initialiseDataSource(): Promise<void> {
0 commit comments