push
github
2100 of 3363 branches covered (62.44%)
282 of 757 new or added lines in 74 files covered. (37.25%)
14879 existing lines in 182 files now uncovered.25574 of 98035 relevant lines covered (26.09%)
5.17 hits per line
UNCOV
1
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
UNCOV
2
|
import type { Provider } from '@nestjs/common'; |
× |
UNCOV
3
|
import { PrismaService } from '@teable/db-main-prisma'; |
× |
UNCOV
4
|
import type { Knex } from 'knex'; |
× |
UNCOV
5
|
import { InitBootstrapService } from './init-bootstrap.service'; |
× |
UNCOV
6
|
|
× |
UNCOV
7
|
export const InitBootstrapProvider: Provider = { |
× |
UNCOV
8
|
provide: InitBootstrapService,
|
× |
UNCOV
9
|
useFactory: async (prismaService: PrismaService, knex: Knex) => { |
× |
UNCOV
10
|
const initBootstrapService = new InitBootstrapService(prismaService, knex); |
× |
UNCOV
11
|
|
× |
UNCOV
12
|
await initBootstrapService.init(); |
× |
UNCOV
13
|
|
× |
UNCOV
14
|
return initBootstrapService;
|
× |
UNCOV
15
|
}, |
× |
UNCOV
16
|
inject: [PrismaService, 'CUSTOM_KNEX'], |
× |
UNCOV
17
|
}; |
× |