Skip to content

Commit 174f499

Browse files
committed
fix(igx-ts): update igx-ts templates
1 parent 869f34f commit 174f499

8 files changed

Lines changed: 39 additions & 11 deletions

File tree

packages/igx-templates/IgniteUIForAngularTemplate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export class IgniteUIForAngularTemplate implements Template {
6666
const mainModulePath = path.join(projectPath, `src/app/${modulePath}`);
6767
const folderName = this.folderName(name);
6868
const fileName = this.fileName(name);
69-
const componentFilePath = path.join(projectPath, `src/app/${folderName}/${fileName}.component.ts`);
70-
const className = `${Util.className(Util.nameFromPath(name))}Component`;
69+
const componentFilePath = path.join(projectPath, `src/app/${folderName}/${fileName}.ts`);
70+
const className = `${Util.className(Util.nameFromPath(name))}`;
7171
// standalone components
7272
if (!this.fileExists(mainModulePath)) {
7373
const appRoutesPath = "src/app/app.routes.ts";

packages/igx-templates/igx-ts/custom-templates/awesome-grid/files/src/app/__path__/__filePrefix__.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('<%=ClassName%>', () => {
3535
]
3636
})
3737
.compileComponents();
38-
}));
38+
});
3939

4040
beforeEach(() => {
4141
fixture = TestBed.createComponent(<%=ClassName%>);

packages/igx-templates/igx-ts/map/default/files/src/app/__path__/__filePrefix__.spec.ts

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

1010
beforeEach(async () => {
1111
await TestBed.configureTestingModule({
12-
imports: [IgxGeographicMapModule, NoopAnimationsModule, GeographicMapComponent]
12+
imports: [IgxGeographicMapModule, NoopAnimationsModule, GeographicMap]
1313
})
1414
.compileComponents();
1515
});

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,23 @@
8888
}
8989
},
9090
"test": {
91-
"builder": "@angular/build:unit-test"
91+
"builder": "@angular/build:karma",
92+
"options": {
93+
"polyfills": [
94+
"zone.js",
95+
"zone.js/testing"
96+
],
97+
"tsConfig": "tsconfig.spec.json",
98+
"inlineStyleLanguage": "scss",
99+
"assets": [
100+
"src/favicon.ico",
101+
"src/assets"
102+
],
103+
"styles": ["src/styles.scss"],
104+
"stylePreprocessorOptions": {
105+
"includePaths": ["node_modules"]
106+
}
107+
}
92108
},
93109
"lint": {
94110
"builder": "@angular-eslint/builder:lint",

packages/igx-templates/igx-ts/projects/_base/files/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,19 @@
3131
"@angular/cli": "~21.2.1",
3232
"@angular/compiler-cli": "~21.2.0",
3333
"@eslint/js": "^10.0.1",
34+
"@types/jasmine": "~5.1.4",
3435
"angular-eslint": "~21.3.0",
3536
"eslint": "^10.0.2",
3637
"igniteui-cli": "~<%=cliVersion%>",
3738
"jsdom": "^28.0.0",
39+
"jasmine-core": "~5.12.1",
40+
"karma": "~6.4.4",
41+
"karma-chrome-launcher": "~3.2.0",
42+
"karma-coverage": "~2.2.1",
43+
"karma-jasmine": "~5.1.0",
44+
"karma-jasmine-html-reporter": "~2.1.0",
3845
"prettier": "^3.8.1",
3946
"typescript": "~5.9.2",
40-
"typescript-eslint": "8.56.1",
41-
"vitest": "^4.0.8"
47+
"typescript-eslint": "8.56.1"
4248
}
4349
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compilerOptions": {
66
"outDir": "./out-tsc/spec",
77
"types": [
8-
"vitest/globals"
8+
"jasmine"
99
]
1010
},
1111
"include": [

packages/igx-templates/igx-ts/projects/side-nav-auth/files/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@
3535
"@eslint/js": "^10.0.1",
3636
"@types/facebook-js-sdk": "~3.3.6",
3737
"@types/hammerjs": "~2.0.46",
38+
"@types/jasmine": "~5.1.4",
3839
"angular-eslint": "~21.3.0",
3940
"eslint": "^10.0.2",
4041
"igniteui-cli": "~<%=cliVersion%>",
4142
"jsdom": "^28.0.0",
43+
"jasmine-core": "~5.12.1",
44+
"karma": "~6.4.4",
45+
"karma-chrome-launcher": "~3.2.0",
46+
"karma-coverage": "~2.2.1",
47+
"karma-jasmine": "~5.1.0",
48+
"karma-jasmine-html-reporter": "~2.1.0",
4249
"prettier": "^3.8.1",
4350
"typescript": "~5.9.2",
44-
"typescript-eslint": "8.56.1",
45-
"vitest": "^4.0.8"
51+
"typescript-eslint": "8.56.1"
4652
}
4753
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compilerOptions": {
66
"outDir": "./out-tsc/spec",
77
"types": [
8-
"vitest/globals",
8+
"jasmine",
99
"node",
1010
"facebook-js-sdk"
1111
],

0 commit comments

Comments
 (0)