Use this skill when applying VCSDD to TypeScript/JavaScript projects. Provides fast-check property testing patterns, Stryker mutation testing, and vitest/jest integration for the VCSDD pipeline.
Scanned 6/1/2026
Install via CLI
openskills install sc30gsw/vcsdd-claude-code---
name: vcsdd-language-typescript
description: Use this skill when applying VCSDD to TypeScript/JavaScript projects. Provides fast-check property testing patterns, Stryker mutation testing, and vitest/jest integration for the VCSDD pipeline.
origin: VCSDD
---
# VCSDD Language Profile: TypeScript
## Verification Toolset
| Tier | Tool | Install | Use Case |
|------|------|---------|---------|
| 1 | fast-check | `npm install -D fast-check` | Property-based testing |
| 1 | @stryker-mutator/core | `npm install -D @stryker-mutator/core` | Mutation testing |
| 1 | vitest / jest | `npm install -D vitest` | Unit + property tests |
## fast-check Pattern
```typescript
import * as fc from 'fast-check';
import { describe, it } from 'vitest';
import { parse, serialize } from '../src/parser';
describe('parser properties', () => {
it('never throws on arbitrary input', () => {
fc.assert(
fc.property(fc.string(), (s) => {
// Should return Ok or Err, never throw
const result = parse(s);
return result !== undefined;
})
);
});
it('roundtrip: parse(serialize(x)) === x', () => {
fc.assert(
fc.property(fc.string({ minLength: 1, maxLength: 50 }), (s) => {
const result = parse(s);
if (result.ok) {
return serialize(result.value) === s;
}
return true; // Error cases are valid
}),
{ numRuns: 1000 }
);
});
});
```
## Stryker Setup
```bash
# Initialize Stryker
npx stryker init
# Run mutation testing
npx stryker run
# Check results in reports/mutation/
```
stryker.config.js:
```javascript
module.exports = {
mutate: ['src/**/*.ts', '!src/**/*.test.ts'],
testRunner: 'vitest',
reporters: ['html', 'clear-text', 'progress'],
thresholds: { high: 80, low: 60, break: 50 },
};
```
## Type-Safe Result Pattern
```typescript
type Result<T, E> = { ok: true; value: T } | { ok: false; error: E };
function parse(input: string): Result<ParsedDoc, ParseError> {
if (!input) return { ok: false, error: ParseError.Empty };
// ...
}
```
Using discriminated unions ensures the compiler enforces error handling.
No comments yet. Be the first to comment!
Practical guide to testing web applications with screen readers for comprehensive accessibility validation.
克劳德代码会话的正式评估框架,实施评估驱动开发(EDD)原则
Go测试模式包括表格驱动测试、子测试、基准测试、模糊测试和测试覆盖率。遵循TDD方法论,采用地道的Go实践。
使用pytest、TDD方法、夹具、模拟、参数化和覆盖率要求的Python测试策略。
在编写新功能、修复错误或重构代码时使用此技能。强制执行测试驱动开发,包含单元测试、集成测试和端到端测试,覆盖率超过80%。