Generates initial view components with mandatory unit tests. Creates HomeView.vue, PageNotFoundView.vue, and their .spec.ts test files (4 files total).
Generate initial view components for the application WITH UNIT TESTS. Each component MUST have a corresponding .spec.ts file created at the same time as the component.
CRITICAL: This skill requires creating BOTH the .vue component file AND its .spec.ts test file. Do not skip test file creation.
Total Required: 4 files
If you create fewer than 4 files, you have FAILED this skill.
Create the files:
src/views/Home/Home.vuesrc/views/Home/Home.spec.ts ⚠️ REQUIREDsrc/views/PageNotFoundView/PageNotFoundView.vuesrc/views/PageNotFoundView/PageNotFoundView.spec.ts ⚠️ REQUIREDIMPORTANT: Follow this order strictly to ensure tests are never forgotten:
This TDD approach ensures you never create a component without its test.
Each .spec.ts file should include:
Use this checklist to ensure all required files are created:
src/views/Home/Home.spec.ts with comprehensive tests FIRSTsrc/views/Home/Home.vue componentsrc/views/PageNotFoundView/PageNotFoundView.spec.ts with comprehensive tests FIRSTsrc/views/PageNotFoundView/PageNotFoundView.vue component STOP AND VERIFY before proceeding to the next skill:
Run this command to verify all test files exist:
# Check for missing test files
for vue_file in src/views/*/*.vue; do
test_file="${vue_file%.vue}.spec.ts"
if [ ! -f "$test_file" ]; then
echo "❌ MISSING: $test_file"
exit 1
fi
done
echo "✅ All test files present"
DO NOT PROCEED to the next skill. Go back and create the missing test files immediately.
After creating all files, validate: