Skip to content

Commit

Permalink
refactor(core): remove test.ts files in integration tests
Browse files Browse the repository at this point in the history
These files are not necessary since CLI v15+
  • Loading branch information
cexbrayat committed Oct 8, 2023
1 parent 00128e3 commit 94f227e
Show file tree
Hide file tree
Showing 38 changed files with 22 additions and 249 deletions.
1 change: 0 additions & 1 deletion integration/animations-async/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
14 changes: 0 additions & 14 deletions integration/animations-async/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/animations-async/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/animations/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
14 changes: 0 additions & 14 deletions integration/animations/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/animations/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions integration/cli-elements-universal/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js"
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
Expand Down
15 changes: 0 additions & 15 deletions integration/cli-elements-universal/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/cli-elements-universal/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"jasmine"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/cli-hello-world-ivy-i18n/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing",
Expand Down
14 changes: 0 additions & 14 deletions integration/cli-hello-world-ivy-i18n/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/cli-hello-world-ivy-i18n/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/cli-hello-world-lazy/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
14 changes: 0 additions & 14 deletions integration/cli-hello-world-lazy/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/cli-hello-world-lazy/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/cli-hello-world-mocha/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
9 changes: 0 additions & 9 deletions integration/cli-hello-world-mocha/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/cli-hello-world-mocha/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/cli-hello-world/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
14 changes: 0 additions & 14 deletions integration/cli-hello-world/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/cli-hello-world/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions integration/defer/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js"
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
Expand Down
20 changes: 0 additions & 20 deletions integration/defer/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/defer/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
1 change: 0 additions & 1 deletion integration/forms/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": [
"zone.js",
"zone.js/testing"
Expand Down
18 changes: 9 additions & 9 deletions integration/forms/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import {TestBed, waitForAsync} from '@angular/core/testing';
import {AppComponent} from './app.component';
import {TestBed} from '@angular/core/testing';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {AppComponent, ReactiveFormsComponent, TemplateFormsComponent} from './app.component';

describe('AppComponent', () => {
beforeEach(waitForAsync(() => {
TestBed
.configureTestingModule({
declarations: [AppComponent],
})
.compileComponents();
}));
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AppComponent, TemplateFormsComponent, ReactiveFormsComponent],
imports: [FormsModule, ReactiveFormsModule]
}).compileComponents();
});

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
14 changes: 0 additions & 14 deletions integration/forms/src/test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions integration/forms/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"node"
]
},
"files": [
"src/test.ts"
],
"include": [
"src/**/*.spec.ts",
"src/**/*.d.ts"
Expand Down
3 changes: 1 addition & 2 deletions integration/ivy-i18n/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"polyfills": ["zone.js/testing", "src/polyfills.ts"],
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": ["src/favicon.ico", "src/assets"],
Expand Down
14 changes: 6 additions & 8 deletions integration/ivy-i18n/src/app/app.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import {TestBed, async} from '@angular/core/testing';
import {TestBed} from '@angular/core/testing';
import {AppComponent} from './app.component';

describe('AppComponent', () => {
beforeEach(async(() => {
TestBed
.configureTestingModule({
declarations: [AppComponent],
})
.compileComponents();
}));
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [AppComponent],
}).compileComponents();
});

it('should create the app', () => {
const fixture = TestBed.createComponent(AppComponent);
Expand Down
20 changes: 0 additions & 20 deletions integration/ivy-i18n/src/test.ts

This file was deleted.

1 change: 0 additions & 1 deletion integration/ivy-i18n/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
]
},
"files": [
"src/test.ts",
"src/polyfills.ts"
],
"include": [
Expand Down
Loading

0 comments on commit 94f227e

Please sign in to comment.