mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-08-29 04:32:06 -04:00
First Nuxt component tests in the project. Establishes the pattern for testing visual primitives with @vue/test-utils + happy-dom (both already in devDeps). SkeletonCard (5 tests): - default props render correctly - custom message prop renders - loading=true applies animate-pulse - loading=false omits animate-pulse - empty p tag when no message EmojiText (3 tests): - img renders with computed /api/v1/emoji URL - correct inline-block + emoji classes - re-renders when emoji prop changes These components are the simplest hunks of UI in the codebase (pure props, no external state). Future tests can build on this pattern for more complex components. After: 15 tests pass + 1 skipped (was 4 + 0).
13 lines
227 B
JSON
13 lines
227 B
JSON
{
|
|
"name": "drop",
|
|
"private": true,
|
|
"packageManager": "pnpm@11.17.0",
|
|
"devDependencies": {
|
|
"fast-check": "^4.9.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^17.2.0"
|
|
},
|
|
"scripts": {
|
|
"prepare": "husky"
|
|
}
|
|
}
|