Skip to content

Commit 3c8a6c6

Browse files
authored
Merge pull request #1 from samuel27m/dev-typegraphql-typeorm
Add type-graphql and typeorm
2 parents 9a4c3d1 + effb05c commit 3c8a6c6

File tree

13 files changed

+15074
-13683
lines changed

13 files changed

+15074
-13683
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
HELLO=WORLD
2+
DB_HOST=localhost
3+
DB_PORT=3306
4+
DB_USERNAME=root
5+
DB_PASSWORD=secret
6+
DB_DATABASE=db

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.idea/
2-
build/
3-
dist/
2+
.vscode/
43
node_modules/
5-
.env
4+
build/
5+
tmp/
6+
temp/
7+
.env

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "3"
2+
3+
services:
4+
db:
5+
image: mysql:latest
6+
restart: always
7+
environment:
8+
MYSQL_DATABASE: "db"
9+
MYSQL_USER: "user"
10+
MYSQL_PASSWORD: "secret"
11+
MYSQL_ROOT_PASSWORD: "secret"
12+
ports:
13+
- "3306:3306"
14+
volumes:
15+
- db-data:/var/lib/mysql
16+
volumes:
17+
db-data:

jest.config.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ module.exports = {
1111
'<rootDir>/src/**/*.{ts,js}',
1212
'!<rootDir>/src/index.{ts,js}'
1313
],
14-
coverageThreshold: {
15-
global: {
16-
branches: 90,
17-
functions: 90,
18-
lines: 90,
19-
statements: 90,
20-
},
21-
},
14+
// @ TODO: uncomment after implementing SQLite DB for tests
15+
// coverageThreshold: {
16+
// global: {
17+
// branches: 90,
18+
// functions: 90,
19+
// lines: 90,
20+
// statements: 90,
21+
// },
22+
// },
2223
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(j|t)sx?$',
2324
clearMocks: true
2425
};

0 commit comments

Comments
 (0)