Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/css.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// TS 6 (TS2882) checks side-effect imports like `import './globals.css'`,
// which Next 14's bundled types do not declare. Declare plain CSS modules
// so the type checker accepts what the bundler already handles.
declare module '*.css';
7 changes: 6 additions & 1 deletion frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ module.exports = {
transform: {
// The app's tsconfig targets the bundler (module: esnext), which Node
// cannot execute directly — override to commonjs for the test run only.
'^.+\\.ts$': ['ts-jest', { tsconfig: { module: 'commonjs', esModuleInterop: true } }],
// rootDir: TS 6 (TS5011) requires it explicit when the inferred common
// source directory (only the test files here) would mislay output paths.
'^.+\\.ts$': [
'ts-jest',
{ tsconfig: { module: 'commonjs', esModuleInterop: true, rootDir: '.' } },
],
},
};
230 changes: 128 additions & 102 deletions frontend/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"postcss": "^8.4.0",
"tailwindcss": "^3.4.0",
"ts-jest": "^29.4.12",
"typescript": "^5.0.0"
"typescript": "^6.0.3"
}
}
1 change: 1 addition & 0 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"types": ["node", "jest"],
"plugins": [{ "name": "next" }],
"paths": {
"@/*": ["./*"]
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@types/node": "^26.3.0",
"concurrently": "^8.0.0",
"prettier": "3.9.6",
"typescript": "^5.0.0"
"typescript": "^6.0.3"
},
"engines": {
"node": ">=20",
Expand Down
2 changes: 1 addition & 1 deletion services/api-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@types/node": "^26.3.0",
"@types/express": "^4.17.17",
"typescript": "^5.0.0",
"typescript": "^6.0.3",
"tsx": "^4.23.12",
"nodemon": "^3.1.14"
}
Expand Down
2 changes: 1 addition & 1 deletion services/matching/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@types/node": "^26.3.0",
"@types/express": "^4.17.17",
"typescript": "^5.0.0",
"typescript": "^6.0.3",
"tsx": "^4.23.12",
"nodemon": "^3.1.14"
}
Expand Down
2 changes: 1 addition & 1 deletion services/notification/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"devDependencies": {
"@types/node": "^26.3.0",
"@types/express": "^4.17.17",
"typescript": "^5.0.0",
"typescript": "^6.0.3",
"tsx": "^4.23.12",
"nodemon": "^3.1.14"
}
Expand Down
13 changes: 11 additions & 2 deletions services/reporting/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/** ts-jest, matching the jest 29 + ts-jest 29 already in devDependencies. */
/** ts-jest, matching the jest 30 + ts-jest 29 already in devDependencies. */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/src/**/__tests__/**/*.test.ts'],
transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
// TS 6 no longer auto-includes @types packages hoisted to a parent
// node_modules, so the jest globals must be named explicitly.
tsconfig: { types: ['jest', 'node'] },
},
],
},
};
2 changes: 1 addition & 1 deletion services/reporting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/swagger-jsdoc": "^6.0.1",
"@types/swagger-ui-express": "^4.1.3",
"@types/jest": "^30.0.0",
"typescript": "^5.0.0",
"typescript": "^6.0.3",
"tsx": "^4.23.12",
"nodemon": "^3.1.14",
"jest": "^30.4.2",
Expand Down
4 changes: 2 additions & 2 deletions services/reporting/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"module": "node16",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
Expand All @@ -12,7 +12,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"moduleResolution": "node"
"moduleResolution": "node16"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "**/*.test.ts"]
Expand Down
2 changes: 1 addition & 1 deletion shared/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"typescript": "^5.0.0"
"typescript": "^6.0.3"
}
}
Loading