Skip to content

Commit b6c943d

Browse files
committed
add example links
1 parent 373ff33 commit b6c943d

4 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/advanced-examples/mocking-orm/drizzle.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ description: How to mock Drizzle database instances in your unit tests
1010
For an overview of the pattern and approach to mocking ORMs, see the [Mocking ORMs overview](/docs/advanced-examples/mocking-orm).
1111
:::
1212

13+
:::tip Complete Examples
14+
For complete, runnable Drizzle examples, see the [Drizzle examples](https://github.com/suites-dev/examples/tree/main/orm/drizzle) in the Suites Examples repository.
15+
:::
16+
1317
Drizzle uses a database instance that you typically import directly. Wrap it in an injectable class.
1418

1519
## Step 1: Create a Database Injectable

docs/advanced-examples/mocking-orm/mikroorm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ description: How to mock MikroORM entity managers and repositories in your unit
1010
For an overview of the pattern and approach to mocking ORMs, see the [Mocking ORMs overview](/docs/advanced-examples/mocking-orm).
1111
:::
1212

13+
:::tip Complete Examples
14+
For complete, runnable MikroORM examples, see the [MikroORM examples](https://github.com/suites-dev/examples/tree/main/orm/mikroorm) in the Suites Examples repository.
15+
:::
16+
1317
MikroORM uses entity managers and repositories to interact with the database. Wrap these in injectable classes.
1418

1519
If you are using NestJS, you can follow the [NestJS MikroORM documentation](https://docs.nestjs.com/recipes/mikroorm).

docs/advanced-examples/mocking-orm/prisma.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ description: How to mock Prisma client instances in your unit tests
1010
For an overview of the pattern and approach to mocking ORMs, see the [Mocking ORMs overview](/docs/advanced-examples/mocking-orm).
1111
:::
1212

13+
:::tip Complete Examples
14+
For complete, runnable Prisma examples, see the [Prisma examples](https://github.com/suites-dev/examples/tree/main/orm/prisma) in the Suites Examples repository.
15+
:::
16+
1317
Prisma uses a generated client that you typically import directly. Wrap it in an injectable class.
1418

1519
If you are using NestJS, you can follow the [NestJS Prisma documentation](https://docs.nestjs.com/recipes/prisma).

docs/advanced-examples/mocking-orm/typeorm.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ description: How to mock TypeORM repositories and entity managers in your unit t
1010
For an overview of the pattern and approach to mocking ORMs, see the [Mocking ORMs overview](/docs/advanced-examples/mocking-orm).
1111
:::
1212

13+
:::tip Complete Examples
14+
For complete, runnable TypeORM examples, see the [TypeORM examples](https://github.com/suites-dev/examples/tree/main/orm/typeorm) in the Suites Examples repository.
15+
:::
16+
1317
TypeORM uses repositories and entity managers to interact with the database. Wrap these in injectables.
1418

1519
If you are using NestJS, you can follow the [NestJS TypeORM documentation](https://docs.nestjs.com/recipes/sql-typeorm).

0 commit comments

Comments
 (0)