Skip to content

Commit

Permalink
chore: update nx to 12.1.0-rc.1 (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored May 3, 2021
1 parent 8ce0d76 commit d7afd96
Show file tree
Hide file tree
Showing 16 changed files with 310 additions and 415 deletions.
2 changes: 1 addition & 1 deletion apps/cart/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/apps/cart',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: { 'ts-jest': { tsConfig: '<rootDir>/tsconfig.spec.json' } },
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'cart',
};
13 changes: 7 additions & 6 deletions apps/products/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
module.exports = {
preset: '../../jest.preset.js',
coverageDirectory: '../../coverage/apps/products',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
],

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
displayName: 'products',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
2 changes: 1 addition & 1 deletion apps/products/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';

import 'document-register-element';
2 changes: 1 addition & 1 deletion libs/cart/cart-page/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../../coverage/libs/cart/cart-page',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: { 'ts-jest': { tsConfig: '<rootDir>/tsconfig.spec.json' } },
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'cart-cart-page',
};
13 changes: 7 additions & 6 deletions libs/products/home-page/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
module.exports = {
preset: '../../../jest.preset.js',
coverageDirectory: '../../../coverage/libs/products/home-page',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
],

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
displayName: 'products-home-page',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
2 changes: 1 addition & 1 deletion libs/products/home-page/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';

import 'document-register-element';
13 changes: 7 additions & 6 deletions libs/products/product-detail-page/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
module.exports = {
preset: '../../../jest.preset.js',
coverageDirectory: '../../../coverage/libs/products/product-detail-page',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
],

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
displayName: 'products-product-detail-page',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
2 changes: 1 addition & 1 deletion libs/products/product-detail-page/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';

import 'document-register-element';
13 changes: 7 additions & 6 deletions libs/shared/cart/state/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
module.exports = {
preset: '../../../../jest.preset.js',
coverageDirectory: '../../../../coverage/libs/shared/cart/state',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
],

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
displayName: 'shared-cart-state',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
2 changes: 1 addition & 1 deletion libs/shared/cart/state/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
2 changes: 1 addition & 1 deletion libs/shared/header/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../../coverage/libs/shared/header',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: { 'ts-jest': { tsConfig: '<rootDir>/tsconfig.spec.json' } },
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'shared-header',
};
13 changes: 7 additions & 6 deletions libs/shared/product/state/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
module.exports = {
preset: '../../../../jest.preset.js',
coverageDirectory: '../../../../coverage/libs/shared/product/state',
snapshotSerializers: [
'jest-preset-angular/build/AngularNoNgAttributesSnapshotSerializer.js',
'jest-preset-angular/build/AngularSnapshotSerializer.js',
'jest-preset-angular/build/HTMLCommentSerializer.js',
],

setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsConfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
tsconfig: '<rootDir>/tsconfig.spec.json',
},
},
displayName: 'shared-product-state',
snapshotSerializers: [
'jest-preset-angular/build/serializers/no-ng-attributes',
'jest-preset-angular/build/serializers/ng-snapshot',
'jest-preset-angular/build/serializers/html-comment',
],
};
2 changes: 1 addition & 1 deletion libs/shared/product/state/src/test-setup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'jest-preset-angular';
import 'jest-preset-angular/setup-jest';
2 changes: 1 addition & 1 deletion libs/shared/product/ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../../../coverage/libs/shared/product/ui',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: { 'ts-jest': { tsConfig: '<rootDir>/tsconfig.spec.json' } },
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'shared-product-ui',
};
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@
"@angular/router": "11.2.0",
"@emotion/react": "11.1.5",
"@emotion/styled": "11.1.5",
"@ngrx/component-store": "11.0.0",
"@ngrx/effects": "11.0.0",
"@ngrx/entity": "11.0.0",
"@ngrx/router-store": "11.0.0",
"@ngrx/store": "11.0.0",
"@nrwl/angular": "12.0.0",
"@ngrx/component-store": "11.1.0",
"@ngrx/effects": "11.1.0",
"@ngrx/entity": "11.1.0",
"@ngrx/router-store": "11.1.0",
"@ngrx/store": "11.1.0",
"@nrwl/angular": "12.1.0",
"core-js": "^2.5.4",
"document-register-element": "1.13.1",
"normalize.css": "^8.0.1",
Expand All @@ -57,32 +57,32 @@
},
"devDependencies": {
"@angular-devkit/build-angular": "0.1102.0",
"@angular-eslint/eslint-plugin": "2.0.2",
"@angular-eslint/eslint-plugin-template": "2.0.2",
"@angular-eslint/template-parser": "2.0.2",
"@angular-eslint/eslint-plugin": "4.2.0",
"@angular-eslint/eslint-plugin-template": "4.2.0",
"@angular-eslint/template-parser": "4.2.0",
"@angular/cli": "11.2.0",
"@angular/compiler-cli": "11.2.0",
"@angular/language-service": "11.2.0",
"@babel/preset-react": "7.0.0",
"@ngrx/store-devtools": "11.0.0",
"@nrwl/cli": "12.0.0",
"@nrwl/cypress": "12.0.0",
"@nrwl/eslint-plugin-nx": "12.0.0",
"@nrwl/jest": "12.0.0",
"@nrwl/linter": "12.0.0",
"@nrwl/nx-cloud": "11.2.0",
"@nrwl/react": "12.0.0",
"@nrwl/tao": "12.0.0",
"@nrwl/web": "12.0.0",
"@nrwl/workspace": "12.0.0",
"@ngrx/store-devtools": "11.1.0",
"@nrwl/cli": "12.1.0",
"@nrwl/cypress": "12.1.0",
"@nrwl/eslint-plugin-nx": "12.1.0",
"@nrwl/jest": "12.1.0",
"@nrwl/linter": "12.1.0",
"@nrwl/nx-cloud": "12.0.2",
"@nrwl/react": "12.1.0",
"@nrwl/tao": "12.1.0",
"@nrwl/web": "12.1.0",
"@nrwl/workspace": "12.1.0",
"@testing-library/react": "11.2.5",
"@types/jest": "26.0.8",
"@types/node": "14.14.33",
"@types/react": "17.0.3",
"@types/react-dom": "17.0.3",
"@types/react-router-dom": "5.1.7",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"codelyzer": "6.0.1",
"cypress": "^5.0.0",
"dotenv": "8.2.0",
Expand All @@ -98,10 +98,10 @@
"inquirer-autocomplete-prompt": "^1.0.1",
"jest": "26.2.2",
"jest-environment-jsdom-fourteen": "^0.1.0",
"jest-preset-angular": "8.3.2",
"jest-preset-angular": "8.4.0",
"netlify": "^2.4.8",
"prettier": "2.2.1",
"ts-jest": "26.4.0",
"ts-jest": "26.5.5",
"ts-node": "9.1.1",
"tslint": "6.1.3",
"typescript": "4.1.5"
Expand Down
Loading

0 comments on commit d7afd96

Please sign in to comment.