Compare commits

...

5 Commits

Author SHA1 Message Date
William Cheng
a61bc4b8b6 Merge remote-tracking branch 'origin/master' into ts-angular-update-test 2025-10-16 14:16:03 +08:00
William Cheng
c1247a5c17 update v17 package.json 2025-10-16 11:58:39 +08:00
William Cheng
6feb32c4b5 fix ts angular v20 tetss with correct versions 2025-10-16 11:47:17 +08:00
William Cheng
0229b7a947 fix ts angular v18 tetss with correct versions 2025-10-16 11:30:55 +08:00
William Cheng
dc1e932c0e update ts angualr v17 tests with the correct versions 2025-10-16 11:23:31 +08:00
14 changed files with 14926 additions and 7607 deletions

2
.gitignore vendored
View File

@@ -49,6 +49,8 @@ nb-configuration.xml
*.xml~
*.t~
**/.angular
/target
/generated-files
test-output/

View File

@@ -1,5 +1,5 @@
{
"name": "typescript-angular-v16-unit-tests",
"name": "typescript-angular-v17-unit-tests",
"version": "0.0.0",
"scripts": {
"ng": "ng",
@@ -11,24 +11,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^16.1.2",
"@angular/common": "^16.1.2",
"@angular/compiler": "^16.1.2",
"@angular/core": "^16.1.2",
"@angular/forms": "^16.1.2",
"@angular/platform-browser": "^16.1.2",
"@angular/platform-browser-dynamic": "^16.1.2",
"@angular/router": "^16.1.2",
"@angular/animations": "^17.0.0",
"@angular/common": "^17.0.0",
"@angular/compiler": "^17.0.0",
"@angular/core": "^17.0.0",
"@angular/forms": "^17.0.0",
"@angular/platform-browser": "^17.0.0",
"@angular/platform-browser-dynamic": "^17.0.0",
"@angular/router": "^17.0.0",
"core-js": "^3.31.0",
"rxjs": "^7.8.1",
"tslib": "^2.5.3",
"zone.js": "~0.13.1"
"zone.js": "~0.14.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^16.1.1",
"@angular/cli": "^16.1.1",
"@angular/compiler-cli": "^16.1.2",
"@angular/language-service": "^16.1.2",
"@angular-devkit/build-angular": "^17.0.0",
"@angular/cli": "^17.0.0",
"@angular/compiler-cli": "^17.0.0",
"@angular/language-service": "^17.0.0",
"@types/jasmine": "~4.3.4",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^18.16.18",

View File

@@ -26,6 +26,7 @@ describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
AppComponent,
HttpClientModule,
ApiModule.forRoot(getApiConfig)
],
@@ -34,9 +35,6 @@ describe('AppComponent', () => {
StoreService,
UserService,
...fakePetstoreBackendProviders
],
declarations: [
AppComponent
]
}).compileComponents()
}))

View File

@@ -20,9 +20,6 @@ export function getApiConfig () {
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpClientModule,

View File

@@ -55,7 +55,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone' // Included with Angular CLI.
import 'zone.js' // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS

View File

@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'
import 'zone.js/testing'
import { getTestBed } from '@angular/core/testing'
import {
BrowserDynamicTestingModule,

View File

@@ -1,5 +1,5 @@
{
"name": "typescript-angular-v16-unit-tests",
"name": "typescript-angular-v18-unit-tests",
"version": "0.0.0",
"scripts": {
"ng": "ng",
@@ -11,24 +11,24 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^16.1.2",
"@angular/common": "^16.1.2",
"@angular/compiler": "^16.1.2",
"@angular/core": "^16.1.2",
"@angular/forms": "^16.1.2",
"@angular/platform-browser": "^16.1.2",
"@angular/platform-browser-dynamic": "^16.1.2",
"@angular/router": "^16.1.2",
"@angular/animations": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/compiler": "^18.0.0",
"@angular/core": "^18.0.0",
"@angular/forms": "^18.0.0",
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@angular/router": "^18.0.0",
"core-js": "^3.31.0",
"rxjs": "^7.8.1",
"tslib": "^2.5.3",
"zone.js": "~0.13.1"
"zone.js": "~0.14.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^16.1.1",
"@angular/cli": "^16.1.1",
"@angular/compiler-cli": "^16.1.2",
"@angular/language-service": "^16.1.2",
"@angular-devkit/build-angular": "^18.0.0",
"@angular/cli": "^18.0.0",
"@angular/compiler-cli": "^18.0.0",
"@angular/language-service": "^18.0.0",
"@types/jasmine": "~4.3.4",
"@types/jasminewd2": "~2.0.10",
"@types/node": "^18.16.18",

View File

@@ -26,6 +26,7 @@ describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({
imports: [
AppComponent,
HttpClientModule,
ApiModule.forRoot(getApiConfig)
],
@@ -34,9 +35,6 @@ describe('AppComponent', () => {
StoreService,
UserService,
...fakePetstoreBackendProviders
],
declarations: [
AppComponent
]
}).compileComponents()
}))

View File

@@ -20,9 +20,6 @@ export function getApiConfig () {
}
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
HttpClientModule,

View File

@@ -55,7 +55,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone' // Included with Angular CLI.
import 'zone.js' // Included with Angular CLI.
/***************************************************************************************************
* APPLICATION IMPORTS

View File

@@ -1,6 +1,6 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/dist/zone-testing'
import 'zone.js/testing'
import { getTestBed } from '@angular/core/testing'
import {
BrowserDynamicTestingModule,