tests cleanup
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user