Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions test/core-content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,9 @@ describe('createSkillEntrypoint', () => {
expect(entry).toContain('Verification and Finish')
expect(entry).toContain('## Finish')
expect(entry).not.toContain('## Monorepo scope')
expect(entry).not.toContain('## Activation Flow')
expect(entry).not.toContain('## High-Frequency Nuxt Decisions')
expect(entry).not.toContain('## Precedence')
expect(entry).not.toContain('## Before Completion')
expect(entry).not.toContain('## Vue guidance')
expect(entry).not.toContain('## All Nuxt packs')
expect(entry).not.toContain('## Primary Packs')
expect(entry).not.toContain('Installed module APIs')
expect(entry).not.toContain('Nuxt UI Primitives')
expect(entry).not.toContain('Content Modeling and Navigation')
expect(entry).not.toContain('references/nuxt/index.md')
})

it('renders a hard monorepo scope warning when a scope path is provided', () => {
Expand Down Expand Up @@ -154,9 +146,6 @@ describe('createSkillEntrypoint', () => {
expect(entry).toContain('Module Authoring Conventions')
expect(entry).toContain('Writing or refactoring a Nuxt module (`defineNuxtModule`, hooks, public APIs)')
expect(entry).toContain('"Add a Nuxt module option, hook, or runtime extension"')
expect(entry).not.toContain('## Module authoring')
expect(entry).not.toContain('## Module Author Focus')
expect(entry).not.toContain('## Module author focus')
})
})

Expand Down Expand Up @@ -210,8 +199,6 @@ describe('createModuleWrapperContent', () => {
expect(entry).not.toContain('### Resolved module skills')
expect(entry).not.toContain('[@nuxthub/core](./references/modules/nuxthub/nuxthub.md)')
expect(entry).not.toContain('Resolved module skill. Trust: `official`.')
expect(entry).not.toContain('GitHub-resolved')
expect(entry).not.toContain('`unknown`')
})

it('renders detailed module entries in the module index', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/core-generation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ describe('core-only generation', () => {
expect(entry).toContain('Migrations and Compatibility')
expect(entry).toContain('Verification and Finish')
expect(entry).not.toContain('# Nuxt Skill Wrapper')
expect(entry).not.toContain('## Vue guidance')
expect(entry).toContain('## Monorepo scope')
expect(entry).toContain('`test/fixtures/core-only`')
expect(dataPack).toContain('## Data Fetching and SSR')
expect(vue).toContain('# Vue Best Practices Workflow')
await expect(fsp.access(join(skillRoot, 'references/nuxt/index.md'))).rejects.toBeDefined()
// Gated packs stay out when their module isn't installed and module authoring is off.
await expect(fsp.access(join(skillRoot, 'references/nuxt/rules/nuxt-ui-primitives.md'))).rejects.toBeDefined()
await expect(fsp.access(join(skillRoot, 'references/nuxt/rules/module-authoring.md'))).rejects.toBeDefined()
Expand Down
2 changes: 0 additions & 2 deletions test/docs-playground.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ describe('docs playground metadata routing', () => {
expect(skillName).toBe('nuxt-a11y')
expect(files['SKILL.md']).toContain('Docs: [https://a11y.nuxt.com](https://a11y.nuxt.com)')
expect(files['SKILL.md']).toContain('Source code: [https://github.com/nuxt/a11y](https://github.com/nuxt/a11y)')
expect(files['SKILL.md']).not.toContain('This skill was generated from package metadata')
expect(files['references/index.md']).toBeUndefined()
})

it('builds selectable paths for framework files', () => {
Expand Down
5 changes: 0 additions & 5 deletions test/module-author-generation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,5 @@ describe('module-author generation', () => {
expect(entry).toContain('Add a Nuxt module option, hook, or runtime extension')
expect(entry).toContain('Verification and Finish')
expect(entry).toContain('Hydration and SSR Consistency')
expect(entry).not.toContain('## Module authoring')
expect(entry).not.toContain('## Module Author Focus')
expect(entry).not.toContain('## Module author focus')
await expect(fsp.access(join(skillRoot, 'references/index.md'))).rejects.toBeDefined()
await expect(fsp.access(join(skillRoot, 'manifest.json'))).rejects.toBeDefined()
}, 15000)
})
1 change: 0 additions & 1 deletion test/module-setup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ describe('module setup', () => {
}, nuxt)

expect(nuxt.hook).not.toHaveBeenCalled()
expect(mockResolveTargets).not.toHaveBeenCalled()
expect(mockLogger.warn).not.toHaveBeenCalled()
})

Expand Down
2 changes: 0 additions & 2 deletions test/modules-generation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ describe('module-expanded generation', () => {
await expect(fsp.readFile(join(generatedSkillRoot, 'references/modules/test-nuxt-seo/nuxt-seo/SKILL.md'), 'utf8')).resolves.toContain('description: Test Nuxt SEO module skill.')
await expect(fsp.access(join(generatedSkillRoot, 'references/modules/test-nuxt-ui/nuxt-ui/scripts/check.sh'))).rejects.toBeDefined()
await expect(fsp.access(join(generatedSkillRoot, 'references/modules/test-nuxt-seo/nuxt-seo/scripts/check.sh'))).rejects.toBeDefined()
await expect(fsp.access(join(skillRoot, 'references/index.md'))).rejects.toBeDefined()
await expect(fsp.access(join(skillRoot, 'manifest.json'))).rejects.toBeDefined()
await expect(fsp.access(join(cacheRoot, 'generated', 'nuxt-with-modules-fixture', '.state.json'))).resolves.toBeUndefined()
}, 15000)
})
2 changes: 0 additions & 2 deletions test/monorepo-generation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ describe('monorepo generation', () => {
expect(entry).toContain('## Monorepo scope')
expect(entry).toContain('This skill applies only to `apps/web`.')
expect(entry).toContain('Treat files and tasks outside that subtree as out of scope unless the user explicitly redirects you there.')
expect(entry).not.toContain('## Precedence')
expect(entry).toContain('## Routing')
await expect(fsp.access(join(skillRoot, 'references/index.md'))).rejects.toBeDefined()

await expect(fsp.access(join(rootDir, '.claude', 'skills', 'nuxt-web-fixture'))).rejects.toBeDefined()
}, 15000)
Expand Down
2 changes: 0 additions & 2 deletions test/remote-resolver.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -997,8 +997,6 @@ describe('resolveRemoteContributionsForPackage', () => {
expect(result.contributions[0]?.docsUrl).toBe('https://a11y.nuxt.com/')
expect(result.skipped).toEqual([])
await expect(fsp.readFile(join(result.contributions[0]!.sourceDir, 'SKILL.md'), 'utf8')).resolves.toContain('Docs: [https://a11y.nuxt.com/](https://a11y.nuxt.com/)')
await expect(fsp.readFile(join(result.contributions[0]!.sourceDir, 'SKILL.md'), 'utf8')).resolves.not.toContain('This skill was generated from package metadata')
await expect(fsp.access(join(result.contributions[0]!.sourceDir, 'references/index.md'))).rejects.toBeDefined()
})

it('reuses cached github skill trees across runs', async () => {
Expand Down
Loading