Context
Cache module has basic tests but missing: corrupted cache, permission denied, concurrent access, empty cache, TTL expiry.
Files to modify
packages/create-awesome-node-app/tests/cache.test.mts
packages/create-awesome-node-app/tests/cache-integration.test.mts
Test framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts — all tests pass
- New edge cases covered
Steps
- Cache module has basic tests but missing: corrupted cache, permission denied, concurrent access, empty cache, TTL expiry.
packages/create-awesome-node-app/tests/cache.test.mts
packages/create-awesome-node-app/tests/cache-integration.test.mts
- Node.js native test runner via tsx --test
npx tsx --test tests/cache.test.mts — all tests pass
- New edge cases covered
Acceptance criteria
Files
packages/create-awesome-node-app/tests/cache.test.mts
packages/create-awesome-node-app/tests/cache-integration.test.mts
Test framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts — all tests pass
- New edge cases covered
How to verify
npx tsx --test tests/cache.test.mts — all tests pass
- New edge cases covered
Original issue text
Description
Cache module has basic tests but missing: corrupted cache, permission denied, concurrent access, empty cache, TTL expiry.
Files to modify
packages/create-awesome-node-app/tests/cache.test.mts
packages/create-awesome-node-app/tests/cache-integration.test.mts
Test framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts — all tests pass
- New edge cases covered
Context
Cache module has basic tests but missing: corrupted cache, permission denied, concurrent access, empty cache, TTL expiry.
Files to modify
packages/create-awesome-node-app/tests/cache.test.mtspackages/create-awesome-node-app/tests/cache-integration.test.mtsTest framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts— all tests passSteps
packages/create-awesome-node-app/tests/cache.test.mtspackages/create-awesome-node-app/tests/cache-integration.test.mtsnpx tsx --test tests/cache.test.mts— all tests passAcceptance criteria
npx tsx --test tests/cache.test.mts— all tests passFiles
packages/create-awesome-node-app/tests/cache.test.mtspackages/create-awesome-node-app/tests/cache-integration.test.mtsTest framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts— all tests passHow to verify
npx tsx --test tests/cache.test.mts— all tests passOriginal issue text
Description
Cache module has basic tests but missing: corrupted cache, permission denied, concurrent access, empty cache, TTL expiry.
Files to modify
packages/create-awesome-node-app/tests/cache.test.mtspackages/create-awesome-node-app/tests/cache-integration.test.mtsTest framework
Node.js native test runner via tsx --test
Verification
npx tsx --test tests/cache.test.mts— all tests pass