spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / hooks / classify / is-test-file / test-directories / test-directories.ts
16 lines · 325 BRaw
1/**
2 * Path segments of tests, specs, mocks and fixtures, the engine's test
3 * directories, matched against `/<path>`.
4 */
5export const TEST_DIRECTORIES = [
6 '/test/',
7 '/tests/',
8 '/spec/',
9 '/specs/',
10 '/__tests__/',
11 '/__mocks__/',
12 '/__snapshots__/',
13 '/__fixtures__/',
14 '/fixtures/',
15 '/testdata/',
16] as const