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-filename-patterns / test-filename-patterns.ts
11 lines · 274 BRaw
1/**
2 * File-name shapes of test files and snapshots, the engine's test file-name
3 * patterns.
4 */
5export const TEST_FILENAME_PATTERNS: readonly RegExp[] = Object.freeze([
6 /\.test\.[a-z]+$/i,
7 /\.spec\.[a-z]+$/i,
8 /_test\.[a-z]+$/i,
9 /_spec\.[a-z]+$/i,
10 /\.snap$/i,
11])