@hedhog/prisma 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/prisma.module.d.ts +1 -3
- package/src/prisma.service.d.ts +2 -4
- package/src/prisma.service.spec.ts +0 -18
package/README.md
CHANGED
@@ -37,14 +37,14 @@ npm i @hedhog/prisma
|
|
37
37
|
|
38
38
|
```plaintext
|
39
39
|
prisma/
|
40
|
-
├── dist/ # Compiled JavaScript
|
40
|
+
├── dist/ # Compiled JavaScript file from build
|
41
41
|
├── node_modules/ # Discardable folder with all module dependencies
|
42
42
|
├── src/
|
43
43
|
│ ├── index.ts # Entry point for PrismaService
|
44
44
|
│ ├── prisma.module.ts # Module definition (if needed)
|
45
45
|
│ └── prisma.service.ts # Service class extending PrismaClient
|
46
46
|
│ ├── prisma.service.spec.ts # Unit tests for PrismaService
|
47
|
-
├── .gitignore # Specifies which
|
47
|
+
├── .gitignore # Specifies which file Git should ignore
|
48
48
|
├── package.json # Manages dependencies and scripts for the library
|
49
49
|
├── package-lock.json # Lock file for dependencies
|
50
50
|
├── README.md # Documentation for the library
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
package/src/prisma.module.d.ts
CHANGED
package/src/prisma.service.d.ts
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
import { OnModuleInit } from '@nestjs/common';
|
2
1
|
import { PrismaClient } from '@prisma/client';
|
3
|
-
export declare class PrismaService extends PrismaClient
|
4
|
-
|
2
|
+
export declare class PrismaService extends PrismaClient {
|
3
|
+
onModuleInit(): Promise<void>;
|
5
4
|
}
|
6
|
-
//# sourceMappingURL=prisma.service.d.ts.map
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { Test, TestingModule } from '@nestjs/testing';
|
2
|
-
import { PrismaService } from './prisma.service';
|
3
|
-
|
4
|
-
describe('PrismaService', () => {
|
5
|
-
let service: PrismaService;
|
6
|
-
|
7
|
-
beforeEach(async () => {
|
8
|
-
const module: TestingModule = await Test.createTestingModule({
|
9
|
-
providers: [PrismaService],
|
10
|
-
}).compile();
|
11
|
-
|
12
|
-
service = module.get<PrismaService>(PrismaService);
|
13
|
-
});
|
14
|
-
|
15
|
-
it('should be defined', () => {
|
16
|
-
expect(service).toBeDefined();
|
17
|
-
});
|
18
|
-
});
|