secondsky/claude-skills / plugins/nuxt-v4/skills/nuxt-production
nuxt-production
Verified| Nuxt 4 production optimization: hydration, performance, testing with Vitest, deployment to Cloudflare/Vercel/Netlify, and v4 migration. Use when: debugging hydration mismatches, optimizing performance and Core Web Vitals, writing tests with Vitest, deploying to Cloudflare Pages/Workers/Vercel/Netlify, or migrating from Nuxt 3 to Nuxt 4.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.0 KB |
| references/deployment-cloudflare.md | markdown | 13.5 KB |
| references/hydration.md | markdown | 8.4 KB |
| references/performance.md | markdown | 11.8 KB |
| references/testing-vitest.md | markdown | 13.1 KB |
| templates/tests/components/BlogPost.test.ts | script | 1.2 KB |
| templates/wrangler.toml | config | 1.0 KB |
templates/tests/components/BlogPost.test.ts
View on GitHubimport { describe, it, expect } from 'vitest'
import { mountSuspended } from '@nuxt/test-utils/runtime'
import BlogPost from '~/components/BlogPost.vue'
describe('BlogPost', () => {
const mockPost = {
id: '1',
title: 'Test Post',
excerpt: 'This is a test post',
content: 'Full content here',
author: 'John Doe',
createdAt: new Date('2025-01-01')
}
it('renders post title', async () => {
const wrapper = await mountSuspended(BlogPost, {
props: { post: mockPost }
})
expect(wrapper.text()).toContain('Test Post')
})
it('renders post excerpt', async () => {
const wrapper = await mountSuspended(BlogPost, {
props: { post: mockPost }
})
expect(wrapper.text()).toContain('This is a test post')
})
it('renders author name', async () => {
const wrapper = await mountSuspended(BlogPost, {
props: { post: mockPost }
})
expect(wrapper.text()).toContain('John Doe')
})
it('emits click event when clicked', async () => {
const wrapper = await mountSuspended(BlogPost, {
props: { post: mockPost }
})
await wrapper.trigger('click')
expect(wrapper.emitted('click')).toBeTruthy()
})
})
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |