Skip to content

Commit 61df77d

Browse files
Merge pull request nestjs#1852 from WonderPanda/samples_fixes
sample(): fix unit tests in sample-01
2 parents 029082b + 2eb2a03 commit 61df77d

5 files changed

Lines changed: 5456 additions & 5 deletions

File tree

integration/docker-compose.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ services:
2424
restart: always
2525
mysql:
2626
image: mysql:5.7.25
27-
restart: always
2827
environment:
2928
MYSQL_ROOT_PASSWORD: root
3029
MYSQL_DATABASE: test
@@ -43,4 +42,4 @@ services:
4342
ports:
4443
- "15672:15672"
4544
- "5672:5672"
46-
tty: true
45+
tty: true

sample/01-cats-app/e2e/jest-e2e.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"json"
77
],
88
"transform": {
9-
"^.+\\.tsx?$": "<rootDir>/../node_modules/ts-jest/preprocessor.js"
9+
"^.+\\.tsx?$": "ts-jest"
1010
},
1111
"testRegex": "/e2e/.*\\.(e2e-test|e2e-spec).(ts|tsx|js)$",
1212
"collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"],

sample/01-cats-app/jest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"json"
77
],
88
"transform": {
9-
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
9+
"^.+\\.tsx?$": "ts-jest"
1010
},
1111
"testRegex": "/src/.*\\.(test|spec).(ts|tsx|js)$",
1212
"collectCoverageFrom" : ["src/**/*.{js,jsx,tsx,ts}", "!**/node_modules/**", "!**/vendor/**"],

0 commit comments

Comments
 (0)