diff --git a/angular.json b/angular.json index f165add..c9327f4 100644 --- a/angular.json +++ b/angular.json @@ -108,7 +108,8 @@ "karmaConfig": "karma.conf.js", "assets": ["src/favicon.ico", "src/assets"], "styles": ["src/styles.scss"], - "scripts": [] + "scripts": [], + "codeCoverageExclude": ["src/app/test/**", "src/app/generated/**"] } }, "lint": { diff --git a/package.json b/package.json index 6b8bd83..215551d 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "start": "ng serve --configuration=development --proxy-config=proxy.conf.js", "prepare": "husky install", "lint": "ng lint", - "eslint": "eslint --quiet --ext .js,.ts src/**", + "eslint": "eslint --quiet --ext .js,.ts src", "format": "ng lint --fix", "browsers": "npx browserslist", "test": "ng test", "test:ci": "ng test --watch=false --browsers=ChromeHeadless --code-coverage", "karma": "rm -rf reports && npm run test:ci", - "sonar": "npx sonarqube-scanner -Dproject.settings=sonar-local-project.properties", + "sonar": "npx sonarqube-scanner -Dproject.settings=sonar-project.properties", "apigen-cleanup": "rm -rf $npm_package_config_openapiOutput", "apigen-format": "npx prettier $npm_package_config_openapiYaml --write && npx prettier $npm_package_config_openapiOutput/**/* --write", "apigen-generate": "openapi-generator-cli generate -i $npm_package_config_openapiYaml -g typescript-angular -c apigen.yaml -o $npm_package_config_openapiOutput --type-mappings=AnyType=object,set=Array", @@ -34,18 +34,6 @@ "pre-commit": "pretty-quick --staged" } }, - "test": { - "builder": "@angular-devkit/build-angular:karma", - "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", - "tsConfig": "tsconfig.spec.json", - "karmaConfig": "karma.conf.js", - "codeCoverageExclude": [ - "src/app/generated/**/*" - ] - } - }, "dependencies": { "@angular-architects/module-federation": "15.0.0", "@angular/animations": "15.2.7", diff --git a/src/app/theme/theme-import/theme-import.component.ts b/src/app/theme/theme-import/theme-import.component.ts index db28bd7..9c597e7 100644 --- a/src/app/theme/theme-import/theme-import.component.ts +++ b/src/app/theme/theme-import/theme-import.component.ts @@ -52,7 +52,7 @@ export class ThemeImportComponent implements OnInit { } this.checkThemeExistence() } else { - console.error('Theme Import Error: not valid data ') + console.error('Theme Import Error: not valid data') this.themeImportError = true } } catch (err) {