SKILL.md
Testing – DataSync Asset Store Filesystem
When to use
- Adding or changing tests under
test/ - Interpreting coverage reports or Jest configuration
- Debugging
pretest/ build ordering before tests run
Instructions
- Runner:
npm testruns Jest with--coverage.pretestrunsnpm run build-tsand removes_contentsandcoverageso tests run against a fresh build and clean asset dirs where relevant. - Test files:
jest.config.jssetstestRegex: "./test/..js$"andtestEnvironment: "node". Tests are JavaScript undertest/, not co-located.spec.tsinsrc/. - Coverage: Output directory
coverage/; reporters includejsonandhtml.coveragePathIgnorePatternsexcludesnodemodules,test-utils,testcontent, and parts ofdist/— adjust injest.config.jsif you add new paths that should be ignored or included. - Integration style:
example/andtest/may use mocks; avoid committing real API keys or secrets (align with Talisman/Snyk expectations if hooks are used).