From 4c59e2ae96bd5c70591acafce01163ad2ad92c62 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa Date: Mon, 5 Oct 2026 16:52:34 +0900 Subject: [PATCH] chore: forbid starting vitest from test/unit (#11486) Co-authored-by: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 --- .oxlintrc.jsonc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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": { -- 2.54.0