Skip to content

Commit

Permalink
Add nestjs example
Browse files Browse the repository at this point in the history
  • Loading branch information
hokaccha committed Mar 24, 2024
1 parent 5ca6d32 commit efc9d0a
Show file tree
Hide file tree
Showing 15 changed files with 7,347 additions and 0 deletions.
8 changes: 8 additions & 0 deletions example/with-nestjs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Setup PostgreSQL server and run following commands.

```
$ npm install
$ npm run migrate
$ npm run generate
$ npm run test
```
16 changes: 16 additions & 0 deletions example/with-nestjs/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { Config } from "jest";

const config: Config = {
moduleFileExtensions: ["js", "json", "ts"],
rootDir: ".",
testEnvironment: "node",
testRegex: ".test.ts$",
transform: {
"^.+\\.ts$": "ts-jest",
},
maxWorkers: 1,
globalSetup: "<rootDir>/test/global-setup.ts",
setupFilesAfterEnv: ["<rootDir>/test/setup.ts"],
};

export default config;
Loading

0 comments on commit efc9d0a

Please sign in to comment.