mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
chore: update tsconfig to include test files and refine event subscribers
This commit is contained in:
parent
2d44c23e5a
commit
571d354ef0
2 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@
|
|||
"jest.*.ts",
|
||||
"test/**/*",
|
||||
"dist/**/*",
|
||||
"node_modules/**/*"
|
||||
"node_modules/**/*",
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue