Skip to content

Commit a80908b

Browse files
authored
update nx to 13.2.0-rc.4 (#176)
1 parent ae8a60a commit a80908b

35 files changed

+1276
-1982
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
<<: *set_env
119119
- restore_cache:
120120
<<: *yarn_cache
121-
- run: yarn affected:e2e -- ${AFFECTED_ARGS} --configuration production -- --headless
121+
- run: yarn affected:e2e -- ${AFFECTED_ARGS} --configuration production --parallel false -- --headless
122122
- store_artifacts:
123123
path: dist/cypress
124124

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
!.vscode/extensions.json
2626

2727
# misc
28+
/.angular/cache
2829
/.sass-cache
2930
/connect.lock
3031
/coverage

apps/cart/tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "../../dist/out-tsc",
55
"types": []
66
},
7-
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
7+
"exclude": ["**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", "**/*.test.tsx"],
88
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
99
"files": [
1010
"../../node_modules/@nrwl/react/typings/cssmodule.d.ts",

apps/cart/tsconfig.spec.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
},
88
"include": [
99
"**/*.spec.ts",
10+
"**/*.test.ts",
1011
"**/*.spec.tsx",
12+
"**/*.test.tsx",
1113
"**/*.spec.js",
14+
"**/*.test.js",
1215
"**/*.spec.jsx",
16+
"**/*.test.jsx",
1317
"**/*.d.ts"
1418
],
1519
"files": [

apps/products/jest.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ module.exports = {
1010
tsconfig: '<rootDir>/tsconfig.spec.json',
1111
},
1212
},
13+
transform: {
14+
'^.+.(ts|mjs|js|html)$': 'jest-preset-angular',
15+
},
1316
displayName: 'products',
1417
snapshotSerializers: [
1518
'jest-preset-angular/build/serializers/no-ng-attributes',
1619
'jest-preset-angular/build/serializers/ng-snapshot',
1720
'jest-preset-angular/build/serializers/html-comment',
1821
],
19-
transform: { '^.+\\.(ts|js|html)$': 'jest-preset-angular' },
22+
transformIgnorePatterns: ['node_modules/(?!.*.mjs$)'],
2023
};

apps/products/src/polyfills.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,6 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
22-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
23-
24-
/**
25-
* Web Animations `@angular/platform-browser/animations`
26-
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
27-
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
28-
*/
29-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
30-
3121
/**
3222
* By default, zone.js will patch all possible macroTask and DomEvents
3323
* user can disable parts of macroTask/DomEvents patch by setting following flags

apps/products/tsconfig.spec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"types": ["jest", "node"]
77
},
88
"files": ["src/test-setup.ts"],
9-
"include": ["**/*.spec.ts", "**/*.d.ts"]
9+
"include": ["**/*.spec.ts", "**/*.test.ts", "**/*.d.ts"]
1010
}

libs/cart/cart-page/src/lib/cart-cart-page/cart-cart-page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ import {
1010
getItemCost,
1111
getTotalCost,
1212
SetQuantity,
13-
} from '@nx-example/shared/cart/state';
13+
} from '@nx-example/shared/cart/state/react';
1414
import {
1515
getProduct,
1616
initialState,
1717
productsReducer,
18-
} from '@nx-example/shared/product/state';
18+
} from '@nx-example/shared/product/state/react';
1919

2020
const StyledUl = styled.ul`
2121
display: flex;

libs/cart/cart-page/tsconfig.lib.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"outDir": "../../../dist/out-tsc",
55
"types": []
66
},
7-
"exclude": ["**/*.spec.ts", "**/*.spec.tsx"],
7+
"exclude": ["**/*.spec.ts", "**/*.test.ts", "**/*.spec.tsx", "**/*.test.tsx"],
88
"include": ["**/*.ts", "**/*.tsx"]
99
}

libs/cart/cart-page/tsconfig.spec.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
},
88
"include": [
99
"**/*.spec.ts",
10+
"**/*.test.ts",
1011
"**/*.spec.tsx",
12+
"**/*.test.tsx",
1113
"**/*.spec.js",
14+
"**/*.test.js",
1215
"**/*.spec.jsx",
16+
"**/*.test.jsx",
1317
"**/*.d.ts"
1418
]
1519
}

0 commit comments

Comments
 (0)