Skip to content

Commit f298063

Browse files
Himenonclaude
andcommitted
chore(.dependency-cruiser.cjs): expand test file exclusion patterns to include __tests__ and -test.ts
fix(depcruise): __tests__ディレクトリとtest/spec拡張子をnot-to-dev-depの除外対象に追加 テストファイルからvitestをimportするとnot-to-dev-depルールに引っかかるため、 pathNotパターンに__tests__ディレクトリおよび.test.ts/-test.tsを追加した。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent cdbd6d5 commit f298063

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.dependency-cruiser.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = {
5757
"from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
5858
from: {
5959
path: "^(src|app|lib)",
60-
pathNot: "\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$",
60+
pathNot: "(\\.spec\\.(js|ts|ls|coffee|litcoffee|coffee\\.md)$|__tests__|[-.]test\\.ts$)",
6161
},
6262
to: {
6363
dependencyTypes: ["npm-dev"],

0 commit comments

Comments
 (0)