Skip to content

Commit

Permalink
run migration to 9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nlm-pro committed May 23, 2021
1 parent 14b2b79 commit 80e2ad8
Show file tree
Hide file tree
Showing 10 changed files with 383 additions and 182 deletions.
122 changes: 93 additions & 29 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,19 @@
"apps/products/tsconfig.app.json",
"apps/products/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!apps/products/**"]
"exclude": [
"**/node_modules/**",
"!apps/products/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/products/jest.config.js",
"tsConfig": "apps/products/tsconfig.spec.json",
"setupFile": "apps/products/src/test-setup.ts"
"setupFile": "apps/products/src/test-setup.ts",
"passWithNoTests": true
}
},
"deploy": {
Expand Down Expand Up @@ -138,7 +142,10 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "apps/products-e2e/tsconfig.e2e.json",
"exclude": ["**/node_modules/**", "!apps/products-e2e/**"]
"exclude": [
"**/node_modules/**",
"!apps/products-e2e/**"
]
}
}
}
Expand Down Expand Up @@ -222,15 +229,19 @@
"apps/cart/tsconfig.app.json",
"apps/cart/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!apps/cart/**"]
"exclude": [
"**/node_modules/**",
"!apps/cart/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "apps/cart/jest.config.js",
"tsConfig": "apps/cart/tsconfig.spec.json",
"setupFile": "apps/cart/src/test-setup.ts"
"setupFile": "apps/cart/src/test-setup.ts",
"passWithNoTests": true
}
},
"deploy": {
Expand Down Expand Up @@ -267,7 +278,10 @@
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "apps/cart-e2e/tsconfig.e2e.json",
"exclude": ["**/node_modules/**", "!apps/cart-e2e/**"]
"exclude": [
"**/node_modules/**",
"!apps/cart-e2e/**"
]
}
}
}
Expand All @@ -281,8 +295,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["libs/shared/product/types/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/shared/product/types/**"]
"tsConfig": [
"libs/shared/product/types/tsconfig.lib.json"
],
"exclude": [
"**/node_modules/**",
"!libs/shared/product/types/**"
]
}
}
}
Expand All @@ -296,8 +315,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["libs/shared/product/data/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/shared/product/data/**"]
"tsConfig": [
"libs/shared/product/data/tsconfig.lib.json"
],
"exclude": [
"**/node_modules/**",
"!libs/shared/product/data/**"
]
}
}
}
Expand All @@ -315,15 +339,19 @@
"libs/shared/product/ui/tsconfig.lib.json",
"libs/shared/product/ui/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/shared/product/ui/**"]
"exclude": [
"**/node_modules/**",
"!libs/shared/product/ui/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/shared/product/ui/jest.config.js",
"tsConfig": "libs/shared/product/ui/tsconfig.spec.json",
"setupFile": "libs/shared/product/ui/src/test-setup.ts"
"setupFile": "libs/shared/product/ui/src/test-setup.ts",
"passWithNoTests": true
}
}
}
Expand All @@ -341,15 +369,19 @@
"libs/products/home-page/tsconfig.lib.json",
"libs/products/home-page/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/products/home-page/**"]
"exclude": [
"**/node_modules/**",
"!libs/products/home-page/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/products/home-page/jest.config.js",
"tsConfig": "libs/products/home-page/tsconfig.spec.json",
"setupFile": "libs/products/home-page/src/test-setup.ts"
"setupFile": "libs/products/home-page/src/test-setup.ts",
"passWithNoTests": true
}
}
},
Expand All @@ -372,15 +404,19 @@
"libs/cart/cart-page/tsconfig.lib.json",
"libs/cart/cart-page/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/cart/cart-page/**"]
"exclude": [
"**/node_modules/**",
"!libs/cart/cart-page/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/cart/cart-page/jest.config.js",
"tsConfig": "libs/cart/cart-page/tsconfig.spec.json",
"setupFile": "libs/cart/cart-page/src/test-setup.ts"
"setupFile": "libs/cart/cart-page/src/test-setup.ts",
"passWithNoTests": true
}
}
}
Expand All @@ -394,8 +430,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["libs/shared/e2e-utils/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/shared/e2e-utils/**"]
"tsConfig": [
"libs/shared/e2e-utils/tsconfig.lib.json"
],
"exclude": [
"**/node_modules/**",
"!libs/shared/e2e-utils/**"
]
}
}
}
Expand All @@ -409,8 +450,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["libs/shared/jsxify/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/shared/jsxify/**"]
"tsConfig": [
"libs/shared/jsxify/tsconfig.lib.json"
],
"exclude": [
"**/node_modules/**",
"!libs/shared/jsxify/**"
]
}
}
}
Expand All @@ -428,15 +474,19 @@
"libs/shared/cart/state/tsconfig.lib.json",
"libs/shared/cart/state/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/shared/cart/state/**"]
"exclude": [
"**/node_modules/**",
"!libs/shared/cart/state/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/shared/cart/state/jest.config.js",
"tsConfig": "libs/shared/cart/state/tsconfig.spec.json",
"setupFile": "libs/shared/cart/state/src/test-setup.ts"
"setupFile": "libs/shared/cart/state/src/test-setup.ts",
"passWithNoTests": true
}
}
},
Expand All @@ -459,15 +509,19 @@
"libs/shared/product/state/tsconfig.lib.json",
"libs/shared/product/state/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/shared/product/state/**"]
"exclude": [
"**/node_modules/**",
"!libs/shared/product/state/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/shared/product/state/jest.config.js",
"tsConfig": "libs/shared/product/state/tsconfig.spec.json",
"setupFile": "libs/shared/product/state/src/test-setup.ts"
"setupFile": "libs/shared/product/state/src/test-setup.ts",
"passWithNoTests": true
}
}
},
Expand Down Expand Up @@ -497,15 +551,19 @@
"libs/shared/header/tsconfig.lib.json",
"libs/shared/header/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/shared/header/**"]
"exclude": [
"**/node_modules/**",
"!libs/shared/header/**"
]
}
},
"test": {
"builder": "@nrwl/jest:jest",
"options": {
"jestConfig": "libs/shared/header/jest.config.js",
"tsConfig": "libs/shared/header/tsconfig.spec.json",
"setupFile": "libs/shared/header/src/test-setup.ts"
"setupFile": "libs/shared/header/src/test-setup.ts",
"passWithNoTests": true
}
}
}
Expand Down Expand Up @@ -534,7 +592,8 @@
"options": {
"jestConfig": "libs/products/product-detail-page/jest.config.js",
"tsConfig": "libs/products/product-detail-page/tsconfig.spec.json",
"setupFile": "libs/products/product-detail-page/src/test-setup.ts"
"setupFile": "libs/products/product-detail-page/src/test-setup.ts",
"passWithNoTests": true
}
}
},
Expand All @@ -553,8 +612,13 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["libs/shared/styles/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/shared/styles/**"]
"tsConfig": [
"libs/shared/styles/tsconfig.lib.json"
],
"exclude": [
"**/node_modules/**",
"!libs/shared/styles/**"
]
}
}
}
Expand Down
5 changes: 3 additions & 2 deletions apps/products/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ module.exports = {
preset: '../../jest.config.js',
coverageDirectory: '../../coverage/apps/products',
snapshotSerializers: [
'jest-preset-angular/AngularSnapshotSerializer.js',
'jest-preset-angular/HTMLCommentSerializer.js'
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js'
]
};
Loading

0 comments on commit 80e2ad8

Please sign in to comment.