Skip to content

Commit 6370f0d

Browse files
authored
[fix]: merge pull request #1482 from IgniteUI/mvenkov/fix-chart-tests
Teardown chart test specifically
2 parents 603bf4f + c35d3b3 commit 6370f0d

File tree

16 files changed

+24
-51
lines changed

16 files changed

+24
-51
lines changed

packages/core/update/Update.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export async function updateWorkspace(rootPath: string): Promise<boolean> {
119119
// For React and WebComponents projects without explicit workspaces,
120120
// check for common project patterns like projects/* in addition to src/
121121
workspaces.push(path.join(rootPath, "src"));
122-
122+
123123
// Check for projects/* pattern common in React demo/example repositories
124124
// Only check if projects directory exists to avoid unnecessary glob calls
125125
const projectsDir = path.join(rootPath, "projects");

packages/igx-templates/igx-ts-legacy/category-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ describe('<%=ClassName%>Component', () => {
1010
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
1212
declarations: [<%=ClassName%>Component],
13-
imports: [FormsModule, IgxCategoryChartModule]
13+
imports: [FormsModule, IgxCategoryChartModule],
14+
teardown: { destroyAfterEach: false }
1415
})
1516
.compileComponents();
1617
}));

packages/igx-templates/igx-ts-legacy/financial-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('<%=ClassName%>Component', () => {
99
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
1111
declarations: [<%=ClassName%>Component],
12-
imports: [IgxFinancialChartModule]
12+
imports: [IgxFinancialChartModule],
13+
teardown: { destroyAfterEach: false }
1314
})
1415
.compileComponents();
1516
}));

packages/igx-templates/igx-ts-legacy/projects/_base/files/angular.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@
9494
"test": {
9595
"builder": "@angular-devkit/build-angular:karma",
9696
"options": {
97-
"main": "src/test.ts",
98-
"polyfills": "src/polyfills.ts",
97+
"polyfills": [
98+
"zone.js",
99+
"zone.js/testing"
100+
],
99101
"tsConfig": "tsconfig.spec.json",
100102
"inlineStyleLanguage": "scss",
101103
"styles": [

packages/igx-templates/igx-ts-legacy/projects/_base/files/src/test.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/igx-templates/igx-ts-legacy/projects/_base/files/tsconfig.spec.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
]
99
},
1010
"files": [
11-
"src/test.ts",
1211
"src/polyfills.ts"
1312
],
1413
"include": [

packages/igx-templates/igx-ts-legacy/projects/side-nav-auth/files/tsconfig.spec.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"module": "commonjs"
1212
},
1313
"files": [
14-
"src/test.ts",
1514
"src/polyfills.ts"
1615
],
1716
"include": [

packages/igx-templates/igx-ts/category-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ describe('<%=ClassName%>Component', () => {
99

1010
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
12-
imports: [FormsModule, IgxCategoryChartModule, <%=ClassName%>Component]
12+
imports: [FormsModule, IgxCategoryChartModule, <%=ClassName%>Component],
13+
teardown: { destroyAfterEach: false }
1314
})
1415
.compileComponents();
1516
}));

packages/igx-templates/igx-ts/financial-chart/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ describe('<%=ClassName%>Component', () => {
88

99
beforeEach(waitForAsync(() => {
1010
TestBed.configureTestingModule({
11-
imports: [IgxFinancialChartModule, <%=ClassName%>Component]
11+
imports: [IgxFinancialChartModule, <%=ClassName%>Component],
12+
teardown: { destroyAfterEach: false }
1213
})
1314
.compileComponents();
1415
}));

packages/igx-templates/igx-ts/linear-gauge/default/files/src/app/__path__/__filePrefix__.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('<%=ClassName%>Component', () => {
99

1010
beforeEach(waitForAsync(() => {
1111
TestBed.configureTestingModule({
12-
imports: [IgxLinearGaugeModule, NoopAnimationsModule, <%=ClassName%>Componen]
12+
imports: [IgxLinearGaugeModule, NoopAnimationsModule, <%=ClassName%>Component]
1313
})
1414
.compileComponents();
1515
}));

0 commit comments

Comments
 (0)