Skip to content

Commit

Permalink
docs: improve testing example
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch committed Apr 15, 2020
1 parent ea5c0a4 commit d097cd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,10 @@ However, if the test database is not in memory, than use the `--runInBand` flag

```typescript
describe("UserService", () => {
let connection: Connection

beforeAll(async (done) => {
await useRefreshDatabase()
connection = await useRefreshDatabase({ connection: 'memory' })
await useSeeding()

const user = await factory(User)().make()
Expand Down

0 comments on commit d097cd0

Please sign in to comment.