@nestjs/schematics
Advanced tools
Comparing version 5.11.0 to 5.11.2
@@ -12,5 +12,5 @@ import { Controller, Dependencies, Get } from '@nestjs/common'; | ||
@Get() | ||
root() { | ||
return this.appService.root(); | ||
getHello() { | ||
return this.appService.getHello(); | ||
} | ||
} |
@@ -18,5 +18,5 @@ import { Test } from '@nestjs/testing'; | ||
const appController = app.get(AppController); | ||
expect(appController.root()).toBe('Hello World!'); | ||
expect(appController.getHello()).toBe('Hello World!'); | ||
}); | ||
}); | ||
}); |
@@ -5,5 +5,5 @@ import { Injectable } from '@nestjs/common'; | ||
export class AppService { | ||
root() { | ||
getHello() { | ||
return 'Hello World!'; | ||
} | ||
} |
@@ -8,3 +8,3 @@ { | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc -p tsconfig.build.json", | ||
"format": "prettier --write \"src/**/*.ts\"", | ||
@@ -20,2 +20,3 @@ "start": "ts-node -r tsconfig-paths/register src/main.ts", | ||
"test:cov": "jest --coverage", | ||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", | ||
"test:e2e": "jest --config ./test/jest-e2e.json" | ||
@@ -22,0 +23,0 @@ }, |
@@ -18,5 +18,5 @@ import { Test, TestingModule } from '@nestjs/testing'; | ||
const appController = app.get<AppController>(AppController); | ||
expect(appController.root()).toBe('Hello World!'); | ||
expect(appController.getHello()).toBe('Hello World!'); | ||
}); | ||
}); | ||
}); |
@@ -1,2 +0,2 @@ | ||
import { Get, Controller } from '@nestjs/common'; | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { AppService } from './app.service'; | ||
@@ -9,5 +9,5 @@ | ||
@Get() | ||
root(): string { | ||
return this.appService.root(); | ||
getHello(): string { | ||
return this.appService.getHello(); | ||
} | ||
} |
@@ -5,5 +5,5 @@ import { Injectable } from '@nestjs/common'; | ||
export class AppService { | ||
root(): string { | ||
getHello(): string { | ||
return 'Hello World!'; | ||
} | ||
} |
@@ -16,9 +16,3 @@ { | ||
}, | ||
"include": [ | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"**/*.spec.ts" | ||
] | ||
"exclude": ["node_modules"] | ||
} |
{ | ||
"extends": "tsconfig.json", | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
@@ -4,0 +4,0 @@ "types": ["jest", "node"] |
{ | ||
"defaultSeverity": "error", | ||
"extends": [ | ||
"tslint:recommended" | ||
], | ||
"jsRules": { | ||
"no-unused-expression": true | ||
}, | ||
"rules": { | ||
"eofline": false, | ||
"quotemark": [ | ||
true, | ||
"single" | ||
], | ||
"indent": false, | ||
"member-access": [ | ||
false | ||
], | ||
"ordered-imports": [ | ||
false | ||
], | ||
"max-line-length": [ | ||
true, | ||
150 | ||
], | ||
"member-ordering": [ | ||
false | ||
], | ||
"curly": false, | ||
"interface-name": [ | ||
false | ||
], | ||
"array-type": [ | ||
false | ||
], | ||
"no-empty-interface": false, | ||
"no-empty": false, | ||
"arrow-parens": false, | ||
"object-literal-sort-keys": false, | ||
"no-unused-expression": false, | ||
"max-classes-per-file": [ | ||
false | ||
], | ||
"variable-name": [ | ||
false | ||
], | ||
"one-line": [ | ||
false | ||
], | ||
"one-variable-per-declaration": [ | ||
false | ||
] | ||
}, | ||
"rulesDirectory": [] | ||
"defaultSeverity": "error", | ||
"extends": ["tslint:recommended"], | ||
"jsRules": { | ||
"no-unused-expression": true | ||
}, | ||
"rules": { | ||
"quotemark": [true, "single"], | ||
"member-access": [false], | ||
"ordered-imports": [false], | ||
"max-line-length": [true, 150], | ||
"member-ordering": [false], | ||
"interface-name": [false], | ||
"arrow-parens": false, | ||
"object-literal-sort-keys": false | ||
}, | ||
"rulesDirectory": [] | ||
} |
{ | ||
"name": "@nestjs/schematics", | ||
"version": "5.11.0", | ||
"version": "5.11.2", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
211
153804
4498