tests cleanup

This commit is contained in:
2026-01-03 16:51:40 +01:00
parent e151fe02d0
commit 540c0fcb7a
34 changed files with 395 additions and 4402 deletions

View File

@@ -359,6 +359,66 @@
"@typescript-eslint/no-explicit-any": "off",
"no-restricted-syntax": "off"
}
},
{
"files": ["tests/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", {
"paths": [
{
"name": "@core/*",
"message": "Integration tests must use in-memory adapters, not core directly"
},
{
"name": "@adapters/*",
"message": "Integration tests must use in-memory adapters only"
}
]
}]
}
},
{
"files": ["tests/e2e/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", {
"patterns": [
{
"group": ["**/inmemory/**"],
"message": "E2E tests must use TypeORM/PostgreSQL, not in-memory adapters"
}
]
}]
}
},
{
"files": ["core/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", {
"paths": [
{
"name": "testing",
"message": "Use @testing/* from adapters/testing"
},
{
"name": "@testing/*",
"message": "Core layer should not depend on testing utilities"
}
]
}]
}
},
{
"files": ["adapters/**/*.ts"],
"rules": {
"no-restricted-imports": ["error", {
"paths": [
{
"name": "testing",
"message": "Use @testing/* from adapters/testing"
}
]
}]
}
}
]
}