Skip to content

Commit 46fbbaa

Browse files
committed
refactor(lint): enforce provider identifiers in tests
1 parent e22fcbf commit 46fbbaa

1 file changed

Lines changed: 35 additions & 6 deletions

File tree

‎src/eslint.config.mjs‎

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,42 @@ export default [
3636
{
3737
files: ["**/*.ts", "**/*.tsx"],
3838
ignores: [
39-
"**/__tests__/**",
40-
"**/__mocks__/**",
41-
"**/*.spec.ts",
42-
"**/*.spec.tsx",
43-
"**/*.test.ts",
44-
"**/*.test.tsx",
4539
"**/fixtures/**",
40+
// Legacy tests with raw provider identifiers. Keep this list explicit so
41+
// new tests are enforced by default and existing files can migrate incrementally.
42+
"__tests__/single-open-invariant.spec.ts",
43+
"api/providers/__tests__/bedrock-reasoning.spec.ts",
44+
"api/providers/__tests__/friendli.spec.ts",
45+
"api/providers/__tests__/gemini-handler.spec.ts",
46+
"api/providers/__tests__/kimi-code.spec.ts",
47+
"api/transform/__tests__/reasoning.spec.ts",
48+
"core/config/__tests__/ContextProxy.spec.ts",
49+
"core/config/__tests__/importExport.spec.ts",
50+
"core/config/__tests__/ProviderSettingsManager.spec.ts",
51+
"core/task/__tests__/apiConversationHistory.spec.ts",
52+
"core/task/__tests__/flushPendingToolResultsToHistory.spec.ts",
53+
"core/task/__tests__/grace-retry-errors.spec.ts",
54+
"core/task/__tests__/grounding-sources.test.ts",
55+
"core/task/__tests__/reasoning-preservation.test.ts",
56+
"core/task/__tests__/Task.dispose.test.ts",
57+
"core/task/__tests__/Task.persistence.spec.ts",
58+
"core/task/__tests__/Task.resume-eviction-race.spec.ts",
59+
"core/task/__tests__/Task.spec.ts",
60+
"core/task/__tests__/Task.sticky-profile-race.spec.ts",
61+
"core/task/__tests__/Task.throttle.test.ts",
62+
"core/webview/__tests__/ClineProvider.apiHandlerRebuild.spec.ts",
63+
"core/webview/__tests__/ClineProvider.flicker-free-cancel.spec.ts",
64+
"core/webview/__tests__/ClineProvider.lockApiConfig.spec.ts",
65+
"core/webview/__tests__/ClineProvider.spec.ts",
66+
"core/webview/__tests__/ClineProvider.sticky-mode.spec.ts",
67+
"core/webview/__tests__/ClineProvider.sticky-profile.spec.ts",
68+
"core/webview/__tests__/messageEnhancer.test.ts",
69+
"core/webview/__tests__/webviewMessageHandler.spec.ts",
70+
"shared/__tests__/api.spec.ts",
71+
"shared/__tests__/checkExistApiConfig.spec.ts",
72+
"shared/__tests__/ProfileValidator.spec.ts",
73+
"utils/__tests__/autoImportSettings.spec.ts",
74+
"utils/__tests__/enhance-prompt.spec.ts",
4675
// Embedding providers are a separate domain whose identifiers only partially
4776
// overlap with the canonical API provider registry.
4877
"services/code-index/**",

0 commit comments

Comments
 (0)