Skip to content

Commit dba84b2

Browse files
committed
docs(integration-examples): add "config.ts" file for jest example
fixes #520 fixes #519
1 parent f820161 commit dba84b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/guides/integration-examples.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ This Guide will show how `mongodb-memory-server` can be used with different fram
1111

1212
For useage with `jest` it is recommended to use the [`globalSetup`](https://jestjs.io/docs/en/configuration#globalsetup-string) and [`globalTeardown`](https://jestjs.io/docs/en/configuration#globalteardown-string) options
1313

14+
`config.ts`:
15+
16+
```ts
17+
// this file could be anything (like a json directly imported)
18+
19+
export = {
20+
Memory: true,
21+
IP: '127.0.0.1',
22+
Port: '27017',
23+
}
24+
```
25+
1426
`jest.config.json`:
1527

1628
```ts

0 commit comments

Comments
 (0)