Skip to content

Commit 079b86e

Browse files
committed
Add orm examples
1 parent d70c02e commit 079b86e

File tree

85 files changed

+19272
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+19272
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
- inversify-sinon
2222
- inversify-vitest
2323
- nestjs-jest
24+
- nestjs-jest-drizzle
25+
- nestjs-jest-mikroorm
26+
- nestjs-jest-prisma
27+
- nestjs-jest-typeorm
2428
- nestjs-sinon
2529
- nestjs-vitest
2630
node-version:

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ If you are new to Suites, check out the [Getting Started](https://suites.dev/doc
1111
| Example | DI Framework | Test Runner | Use When |
1212
| ---------------------------------------------- | ------------ | ----------- | ------------------------------------------------- |
1313
| [nestjs-jest](./nestjs-jest) | NestJS | Jest | NestJS with Jest |
14+
| [nestjs-jest-drizzle](./nestjs-jest-drizzle) | NestJS | Jest | NestJS with Jest + Drizzle ORM |
15+
| [nestjs-jest-prisma](./nestjs-jest-prisma) | NestJS | Jest | NestJS with Jest + Prisma ORM |
16+
| [nestjs-jest-typeorm](./nestjs-jest-typeorm) | NestJS | Jest | NestJS with Jest + TypeORM |
17+
| [nestjs-jest-mikroorm](./nestjs-jest-mikroorm) | NestJS | Jest | NestJS with Jest + MikroORM |
1418
| [nestjs-vitest](./nestjs-vitest) | NestJS | Vitest | NestJS with Vitest |
1519
| [nestjs-sinon](./nestjs-sinon) | NestJS | Sinon | NestJS with Sinon/Mocha |
1620
| [inversify-jest](./inversify-jest) | InversifyJS | Jest | InversifyJS with Jest |
@@ -97,6 +101,10 @@ This consistent domain model makes it easy to compare different framework and te
97101
```
98102
examples/
99103
├── nestjs-jest/ # NestJS with Jest
104+
├── nestjs-jest-drizzle/ # NestJS with Jest + Drizzle ORM
105+
├── nestjs-jest-prisma/ # NestJS with Jest + Prisma ORM
106+
├── nestjs-jest-typeorm/ # NestJS with Jest + TypeORM
107+
├── nestjs-jest-mikroorm/ # NestJS with Jest + MikroORM
100108
├── nestjs-vitest/ # NestJS with Vitest
101109
├── nestjs-sinon/ # NestJS with Sinon
102110
├── inversify-jest/ # InversifyJS with Jest

advanced-mock-config/tests/user.sociable.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,4 @@ describe('User Service Unit Spec (Sociable Tests)', () => {
154154
* - Best for: testing how real code handles various external responses
155155
*/
156156

157+

advanced-mock-config/tests/user.solitary.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,4 @@ describe("User Service Unit Spec (Solitary Tests)", () => {
159159
* - Use for: flexible defaults with per-test overrides
160160
*/
161161

162+

inversify-jest/tests/user.sociable.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ describe('User Service Unit Spec (Sociable Tests)', () => {
5252
});
5353
});
5454

55+

inversify-jest/tests/user.solitary.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ describe('User Service Unit Spec (Solitary Tests)', () => {
6060
});
6161
});
6262

63+

inversify-sinon/tests/user.sociable.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ describe('User Service Unit Spec (Sociable Tests)', () => {
6060
});
6161
});
6262

63+

inversify-sinon/tests/user.solitary.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ describe('User Service Unit Spec (Solitary Tests)', () => {
6363
});
6464
});
6565

66+

inversify-vitest/tests/user.sociable.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@ describe('User Service Unit Spec (Sociable Tests)', () => {
5252
});
5353
});
5454

55+

inversify-vitest/tests/user.solitary.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ describe('User Service Unit Spec (Solitary Tests)', () => {
6060
});
6161
});
6262

63+

0 commit comments

Comments
 (0)