diff --git a/.oxlintrc.jsonc b/.oxlintrc.jsonc index 0902e8ca1..39ccff8fb 100644 --- a/.oxlintrc.jsonc +++ b/.oxlintrc.jsonc @@ -307,6 +307,24 @@ "no-restricted-imports": ["error", { "paths": ["ivya", "ivya/utils", "ivya/aria"] }], }, }, + { + "files": ["test/unit/**"], + "rules": { + "no-restricted-imports": [ + "error", + { + "paths": ["path"], + "patterns": [ + { + "group": ["**/test-utils", "**/test-utils/**"], + "importNames": ["runVitest", "runInlineTests", "runVitestCli"], + "message": "Tests that start Vitest belong in test/e2e.", + }, + ], + }, + ], + }, + }, { "files": ["docs/**", "packages/web-worker/**", "test/unit/**"], "rules": {