Skip to content

Commit 21da8e6

Browse files
author
Gérard Collin
committed
fix: upgraded test
1 parent c2854ca commit 21da8e6

117 files changed

Lines changed: 659 additions & 1286 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/xt-host/.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ trim_trailing_whitespace = true
1010

1111
[*.ts]
1212
quote_type = single
13+
ij_typescript_use_double_quotes = false
1314

1415
[*.md]
1516
max_line_length = off

apps/xt-host/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ yarn-error.log
2626
!.vscode/tasks.json
2727
!.vscode/launch.json
2828
!.vscode/extensions.json
29+
!.vscode/mcp.json
2930
.history/*
3031

3132
# Miscellaneous
@@ -36,6 +37,7 @@ yarn-error.log
3637
/libpeerconnection.log
3738
testem.log
3839
/typings
40+
__screenshots__/
3941

4042
# System files
4143
.DS_Store

apps/xt-host/.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"overrides": [
5+
{
6+
"files": "*.html",
7+
"options": {
8+
"parser": "angular"
9+
}
10+
}
11+
]
12+
}

apps/xt-host/angular.json

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@
1111
"projects": {
1212
"host": {
1313
"projectType": "application",
14-
"schematics": {
15-
"@schematics/angular:component": {
16-
"style": "css"
17-
}
18-
},
14+
"schematics": {},
1915
"root": "projects/host",
2016
"sourceRoot": "projects/host/src",
2117
"prefix": "app",
@@ -39,34 +35,17 @@
3935
"builder": "@angular-architects/native-federation:build",
4036
"options": {
4137
"target": "host:serve-original:development",
42-
"rebuildDelay": 0,
38+
"rebuildDelay": 500,
4339
"dev": true,
40+
"cacheExternalArtifacts": false,
4441
"port": 0
4542
}
4643
},
47-
"extract-i18n": {
48-
"builder": "@angular-devkit/build-angular:extract-i18n"
49-
},
5044
"test": {
51-
"builder": "@analogjs/vitest-angular:test",
52-
"options": {
53-
"polyfills": [],
54-
"tsConfig": "projects/host/tsconfig.spec.json",
55-
"inlineStyleLanguage": "css",
56-
"assets": [
57-
{
58-
"glob": "**/*",
59-
"input": "projects/host/public"
60-
}
61-
],
62-
"styles": [
63-
"projects/host/src/styles.css"
64-
],
65-
"scripts": []
66-
}
45+
"builder": "@angular/build:unit-test"
6746
},
6847
"esbuild": {
69-
"builder": "@angular-devkit/build-angular:application",
48+
"builder": "@angular/build:application",
7049
"options": {
7150
"outputPath": "dist/host",
7251
"index": "projects/host/src/index.html",
@@ -76,7 +55,6 @@
7655
"es-module-shims"
7756
],
7857
"tsConfig": "projects/host/tsconfig.app.json",
79-
"inlineStyleLanguage": "css",
8058
"assets": [
8159
{
8260
"glob": "**/*",
@@ -85,8 +63,7 @@
8563
],
8664
"styles": [
8765
"projects/host/src/styles.css"
88-
],
89-
"scripts": []
66+
]
9067
},
9168
"configurations": {
9269
"production": {
@@ -113,7 +90,7 @@
11390
"defaultConfiguration": "production"
11491
},
11592
"serve-original": {
116-
"builder": "@angular-devkit/build-angular:dev-server",
93+
"builder": "@angular/build:dev-server",
11794
"configurations": {
11895
"production": {
11996
"buildTarget": "host:esbuild:production"

apps/xt-host/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "ng build host --configuration=development",
88
"build-deploy": "APP=host && ng build $APP --configuration=$BUILD --output-path=\"../../dist/$STAGE/$APP\" --base-href=\"https://dont-code.net/apps/$STAGE/$APP/\"",
99
"watch": "ng build --watch --configuration development",
10-
"test": "cd projects/host && ../../node_modules/.bin/vitest"
10+
"test": "ng test"
1111
},
1212
"private": false,
1313
"repository": {
@@ -35,12 +35,15 @@
3535
"@primeuix/themes": "^2.0.3",
3636
"tailwindcss": "~4.2.2",
3737
"@ngrx/signals": "^21.1.0",
38-
"@softarc/native-federation-runtime": "^3.3.6",
39-
"@angular-architects/native-federation": "^21.2.3"
38+
"@softarc/native-federation-runtime": "^3.3.6"
4039
},
4140
"devDependencies": {
41+
"@angular-architects/native-federation": "^21.2.3",
4242
"@primeuix/utils": "^0.7.1",
4343
"@primeuix/styled": "^0.7.2",
44+
"@primeuix/styles": "^2.0.3",
45+
"@primeuix/motion": "^0.1.1",
46+
"@types/node": "^24.12.2",
4447
"@tailwindcss/postcss": "~4.2.2",
4548
"postcss": "~8.5.6",
4649
"@angular-devkit/build-angular": "^21.2.6",
@@ -50,10 +53,7 @@
5053
"ng-packagr": "^21.2.2",
5154
"typescript": "^5.9.3",
5255
"happy-dom": "^20.8.9",
53-
"@analogjs/vite-plugin-angular":"^2.4.0",
54-
"@analogjs/vitest-angular": "^2.4.0",
5556
"jsdom": "^29.0.1",
56-
"vite": "^8.0.3",
5757
"vitest": "^4.1.2"
5858
}
5959
}

apps/xt-host/projects/host/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core';
1+
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZonelessChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
33

44
import { routes } from './app.routes';
@@ -121,7 +121,7 @@ const AppPreset = definePreset(Aura, {
121121

122122
export const appConfig: ApplicationConfig = {
123123
providers: [
124-
provideZonelessChangeDetection(),
124+
provideBrowserGlobalErrorListeners(), provideZonelessChangeDetection(),
125125
provideAnimationsAsync(),
126126
providePrimeNG({
127127
theme: {

apps/xt-host/projects/host/src/test-setup.ts

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

apps/xt-host/projects/host/tsconfig.app.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
"outDir": "../../out-tsc/app",
77
"types": []
88
},
9-
"files": [
10-
"src/main.ts"
11-
],
12-
"include": [
13-
"src/**/*.d.ts"
14-
]
9+
"include": ["src/**/*.ts"],
10+
"exclude": ["src/**/*.spec.ts"]
1511
}

apps/xt-host/projects/host/tsconfig.spec.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
"extends": "../../tsconfig.json",
55
"compilerOptions": {
66
"outDir": "../../out-tsc/spec",
7-
"target": "es2016",
87
"types": [
9-
"vitest/globals","node"
10-
],
11-
"emitDecoratorMetadata": true
8+
"vitest/globals"
9+
]
1210
},
13-
"files": ["src/test-setup.ts"],
14-
"include": [
15-
"src/**/*.spec.ts",
16-
"src/**/*.d.ts"
17-
]
11+
"include": ["src/**/*.d.ts", "src/**/*.spec.ts"]
1812
}

apps/xt-host/projects/host/vitest.config.ts

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

0 commit comments

Comments
 (0)