Skip to content

Commit

Permalink
Intent fix from 2 to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mvtthew committed Feb 11, 2022
1 parent 5a3da5e commit c5c0a4f
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 118 deletions.
38 changes: 19 additions & 19 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
'./src/**',
'!**/node_modules/**',
'!**/config/**',
'!**/*.module.ts',
'!**/*.schema.ts',
'!./src/App.ts',
'!./src/main.ts',
'!./src/constants/**',
'!./src/config/**',
'!./src/tests/**',
],
moduleNameMapper: { "@src/(.*)": "<rootDir>/src/$1" },
coverageReporters: [ 'text', 'text-summary', 'html', 'clover' ],
setupFilesAfterEnv: [ './src/tests/setupTests.ts' ],
testRegex: '.*\\.spec\\.ts$',
transform: { '^.+\\.(t|j)s$': 'ts-jest' },
preset: 'ts-jest',
testEnvironment: 'node',
collectCoverageFrom: [
'./src/**',
'!**/node_modules/**',
'!**/config/**',
'!**/*.module.ts',
'!**/*.schema.ts',
'!./src/App.ts',
'!./src/main.ts',
'!./src/constants/**',
'!./src/config/**',
'!./src/tests/**',
],
moduleNameMapper: { '@src/(.*)': '<rootDir>/src/$1' },
coverageReporters: [ 'text', 'text-summary', 'html', 'clover' ],
setupFilesAfterEnv: [ './src/tests/setupTests.ts' ],
testRegex: '.*\\.spec\\.ts$',
transform: { '^.+\\.(t|j)s$': 'ts-jest' },
};
4 changes: 2 additions & 2 deletions nest-cli.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"collection": "@nestjs/schematics",
"sourceRoot": "src"
}
144 changes: 72 additions & 72 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
{
"name": "findme-server",
"version": "0.1.2",
"description": "",
"author": "Findock",
"private": true,
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test:lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"docker:up": "docker-compose up",
"docker:up -d": "docker-compose up -d",
"docker:down": "docker-compose down",
"docker:clear": "docker rmi findme-server_app"
},
"dependencies": {
"@nestjs/common": "^8.0.0",
"@nestjs/config": "^1.1.6",
"@nestjs/core": "^8.0.0",
"@nestjs/mongoose": "^9.0.2",
"@nestjs/platform-express": "^8.0.0",
"@nestjs/swagger": "^5.2.0",
"@types/crypto-js": "^4.1.0",
"@types/faker": "5.5.9",
"@types/figlet": "^1.5.4",
"@types/gradient-string": "^1.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"crypto-js": "^4.1.1",
"faker": "5.5.3",
"figlet": "^1.5.2",
"gradient-string": "^2.0.0",
"i": "^0.3.7",
"mongoose": "^6.2.0",
"npm": "^8.4.1",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0",
"swagger-ui-express": "^4.3.0"
},
"devDependencies": {
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.13",
"@types/jest": "27.0.2",
"@types/node": "^16.0.0",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.5",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
}
"name": "findme-server",
"version": "0.1.2",
"description": "",
"author": "Findock",
"private": true,
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test:lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"docker:up": "docker-compose up",
"docker:up -d": "docker-compose up -d",
"docker:down": "docker-compose down",
"docker:clear": "docker rmi findme-server_app"
},
"dependencies": {
"@nestjs/common": "^8.0.0",
"@nestjs/config": "^1.1.6",
"@nestjs/core": "^8.0.0",
"@nestjs/mongoose": "^9.0.2",
"@nestjs/platform-express": "^8.0.0",
"@nestjs/swagger": "^5.2.0",
"@types/crypto-js": "^4.1.0",
"@types/faker": "5.5.9",
"@types/figlet": "^1.5.4",
"@types/gradient-string": "^1.1.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"crypto-js": "^4.1.1",
"faker": "5.5.3",
"figlet": "^1.5.2",
"gradient-string": "^2.0.0",
"i": "^0.3.7",
"mongoose": "^6.2.0",
"npm": "^8.4.1",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0",
"swagger-ui-express": "^4.3.0"
},
"devDependencies": {
"@nestjs/cli": "^8.0.0",
"@nestjs/schematics": "^8.0.0",
"@nestjs/testing": "^8.0.0",
"@types/express": "^4.17.13",
"@types/jest": "27.0.2",
"@types/node": "^16.0.0",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.2.5",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "^27.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "^3.10.1",
"typescript": "^4.3.5"
}
}
9 changes: 7 additions & 2 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{
"extends": "./tsconfig.json",
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"test",
"dist",
"**/*spec.ts"
]
}
48 changes: 25 additions & 23 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"paths": {
"@src/*": ["src/*"]
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "es2017",
"sourceMap": true,
"outDir": "./dist",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": false,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false,
"resolveJsonModule": true,
"esModuleInterop": true,
"paths": {
"@src/*": [
"src/*"
]
}
}
}
}

0 comments on commit c5c0a4f

Please sign in to comment.