diff --git a/packages/api/src/data_source.ts b/packages/api/src/data_source.ts index 1a06fa0d9..54fbebb75 100644 --- a/packages/api/src/data_source.ts +++ b/packages/api/src/data_source.ts @@ -13,7 +13,7 @@ export const appDataSource = new DataSource({ database: env.pg.dbName, logging: ['query', 'info'], entities: [__dirname + '/entity/**/*{.js,.ts}'], - subscribers: [__dirname + '/events/**/*{.js,.ts}'], + subscribers: [__dirname + '/events/**/!(*.test|*.spec).{js,ts}'], namingStrategy: new SnakeNamingStrategy(), logger: new CustomTypeOrmLogger(['query', 'info']), connectTimeoutMS: 10000, // 10 seconds diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index a329e8994..1246ab203 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -22,6 +22,8 @@ "jest.*.ts", "test/**/*", "dist/**/*", - "node_modules/**/*" + "node_modules/**/*", + "src/**/*.test.ts", + "src/**/*.spec.ts" ] } \ No newline at end of file