agentsclimarketplace

Vant skill test unit

Skill dhaupin/vant/models/public/skills/vant-skill-test-unit

Test individual functions and methods in isolation. Test happy path, edge cases, and error handling. Use when adding new functions, after bug fixes, or before commits.From its SKILL.md

Install
npx -y skills add dhaupin/vant --skill vant-skill-test-unit

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 9 stars9 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.1 KB, 258 tokens by cl100k_base, as published. Nobody here has run it

Unit Test

Test individual functions.

When To Use

  • New function
  • After bug fix
  • Before commit

What To Test

1. Happy Path

test('add works', () => {
  expect(add(1, 2)).toBe(3)
})

2. Edge Cases

test('add handles null', () => {
  expect(add(null, 2)).toBe(2)
})

test('add handles string', () => {
  expect(add('1', 2)).toBe(3)
})

3. Errors

test('add throws on invalid', () => {
  expect(() => add()).toThrow()
})

Patterns

TestFor
toBeExact value
toEqualStructure
toThrowErrors
toHaveBeenCalledFunctions

Output

## Unit Tests

### Passed
- [n] tests

### Failed
- [n] tests

### Coverage
- [n]%

Role: Unit Tester
Input: Test file
Output: Test results

Test the smallest pieces.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,871. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.