When users select 'skip' (no MCP) during installation, the injectConfigVariables function previously fell through to the else branch, injecting non-existent `mcp__ace-tool__search_context` into all 14 templates and 2 agent definitions. This adds a dedicated 'skip' branch with a 4-stage replacement strategy: 1. Remove MCP tool from agent frontmatter tools declarations 2. Replace code blocks containing MCP invocations with Glob+Grep fallback guidance 3. Replace inline backtick references with `Glob + Grep`(MCP 未配置) 4. Safety net for any remaining bare references Also introduces vitest and adds 29 test cases covering skip, contextweaver, ace-tool providers, plus integration tests against all real templates. https://claude.ai/code/session_01HvwiUv489c9WeoyhBB9yTq
8 lines
142 B
TypeScript
8 lines
142 B
TypeScript
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
test: {
|
|
include: ['src/**/__tests__/**/*.test.ts'],
|
|
},
|
|
})
|