Skip to content

Commit b674602

Browse files
committed
upgrade to Angular 13
1 parent 689e69a commit b674602

File tree

6 files changed

+7
-44
lines changed

6 files changed

+7
-44
lines changed

.gitignore

+1
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

README.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,14 @@
33

44
This repository contains the code of the [Angular Testing Course](https://angular-university.io/course/angular-testing-course).
55

6-
This course repository is updated to Angular v12, and there is a package-lock.json file available, for avoiding semantic versioning installation issues.
6+
This course repository is updated to Angular v13, and there is a package-lock.json file available, for avoiding semantic versioning installation issues.
77

88
![Angular Testing Course](https://s3-us-west-1.amazonaws.com/angular-university/course-images/angular-testing-small.png)
99

1010

1111
# Installation pre-requisites
1212

13-
For running this project we need node and npm installed on our machine. These are some tutorials to install node in different operating systems:
14-
15-
*Its important to install the latest version of Node*
16-
17-
- [Install Node and NPM on Windows](https://www.youtube.com/watch?v=8ODS6RM6x7g)
18-
- [Install Node and NPM on Linux](https://www.youtube.com/watch?v=yUdHk-Dk_BY)
19-
- [Install Node and NPM on Mac](https://www.youtube.com/watch?v=Imj8PgG3bZU)
13+
Please install Node 16 Long Term Support Edition (LTE).
2014

2115

2216
# Installing the Angular CLI

angular.json

-23
Original file line numberDiff line numberDiff line change
@@ -88,18 +88,6 @@
8888
"src/favicon.ico"
8989
]
9090
}
91-
},
92-
"lint": {
93-
"builder": "@angular-devkit/build-angular:tslint",
94-
"options": {
95-
"tsConfig": [
96-
"src/tsconfig.app.json",
97-
"src/tsconfig.spec.json"
98-
],
99-
"exclude": [
100-
"**/node_modules/**"
101-
]
102-
}
10391
}
10492
}
10593
},
@@ -114,17 +102,6 @@
114102
"protractorConfig": "./protractor.conf.js",
115103
"devServerTarget": "angular-testing-course:serve"
116104
}
117-
},
118-
"lint": {
119-
"builder": "@angular-devkit/build-angular:tslint",
120-
"options": {
121-
"tsConfig": [
122-
"e2e/tsconfig.e2e.json"
123-
],
124-
"exclude": [
125-
"**/node_modules/**"
126-
]
127-
}
128105
}
129106
}
130107
}

src/polyfills.ts

-11
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
// import 'core-js/es6/weak-map';
3535
// import 'core-js/es6/set';
3636

37-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
38-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
39-
4037
/** IE10 and IE11 requires the following for the Reflect API. */
4138
// import 'core-js/es6/reflect';
4239

@@ -46,14 +43,6 @@
4643

4744

4845

49-
/**
50-
* Required to support Web Animations `@angular/platform-browser/animations`.
51-
* Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
52-
**/
53-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
54-
55-
56-
5746
/***************************************************************************************************
5847
* Zone JS is required by Angular itself.
5948
*/

src/styles.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use '~@angular/material' as mat;
1+
@use '@angular/material' as mat;
22
/* You can add global styles to this file, and also import other style files */
33

44

src/test.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ __karma__.loaded = function () {};
2222
// First, initialize the Angular testing environment.
2323
getTestBed().initTestEnvironment(
2424
BrowserDynamicTestingModule,
25-
platformBrowserDynamicTesting()
25+
platformBrowserDynamicTesting(), {
26+
teardown: { destroyAfterEach: false }
27+
}
2628
);
2729
// Then we find all the tests.
2830
const context = require.context('./', true, /\.spec\.ts$/);

0 commit comments

Comments
 (0)