Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
cache
cache
reports
44 changes: 32 additions & 12 deletions env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,57 @@ development:
PORT: 3000
DATABASE:
MYSQL:
HOST: database-1.cvxxg8jrkeea.us-east-2.rds.amazonaws.com
HOST:
TYPE: mysql
PORT: 3306
DATABASE: database_cursonodejs
USERNAME: admin
PASSWORD: pazeterna2021
DATABASE:
USERNAME:
PASSWORD:
SYNCHRONIZE: true
ENTITIES: 'src/entities/*.entity.ts'
TOKEN:
TIMEOUT: 60
KEYWORD: superSecreto
AWS:
BUCKET:
NAME: cursonodejs06
PATH: https://cursonodejs06.s3.us-east-2.amazonaws.com/
NAME:
PATH:
test:
PORT: 3000
DATABASE:
MYSQL:
HOST:
TYPE: mysql
PORT: 3306
DATABASE:
USERNAME:
PASSWORD:
SYNCHRONIZE: true
ENTITIES: 'src/entities/*.entity.ts'
TOKEN:
TIMEOUT: 60
KEYWORD: superSecreto
AWS:
BUCKET:
NAME:
PATH:

production:
PORT: 80
DATABASE:
MYSQL:
HOST: database-1.cvxxg8jrkeea.us-east-2.rds.amazonaws.com
HOST:
TYPE: mysql
PORT: 3306
DATABASE: database_cursonodejs
USERNAME: admin
PASSWORD: pazeterna2021
DATABASE:
USERNAME:
PASSWORD:
SYNCHRONIZE: false
ENTITIES: 'dist/entities/*.entity.js'
TOKEN:
TIMEOUT: 60
KEYWORD: superSecreto
AWS:
BUCKET:
NAME: cursonodejs06
PATH: https://cursonodejs06.s3.us-east-2.amazonaws.com/
NAME:
PATH:
35 changes: 35 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = {
testEnvironment: `node`,
bail: true,
verbose: true,
setupFilesAfterEnv: [`jest-extended`],
reporters: [
`default`,
[
`jest-html-reporters`,
{
publicPath: `reports`,
filename: `test.v2.html`,
},
],
[
`./node_modules/jest-html-reporter`,
{
pageTitle: `Test API`,
outputPath: `reports/test.v1.html`,
},
],
],
collectCoverage: true,
collectCoverageFrom: [
`src/**/*.ts`,
`!**/node_modules/**`,
`!src/**/*.entity.ts`,
],
coverageReporters: [`json`, `text`, `html`, 'lcov'],
coverageDirectory: `reports/coverage`,
testPathIgnorePatterns: [`/node_modules/`],
testResultsProcessor: 'jest-sonar-reporter',
testMatch: ['<rootDir>/test/**/*.spec.ts'],
preset: `ts-jest`,
};
Loading