Files
antigravity-skills-reference/web-app/test_output.txt

5.2 KiB

 
RUN v2.1.9 C:/Users/shiva/Desktop/ag/antigravity-awesome-skills/web-app
 
Γ¥» src/pages/__tests__/SkillDetail.test.tsx (6 tests | 6 failed) 44ms
× SkillDetail > Loading state > should show loading spinner when context is loading 27ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
× SkillDetail > Loading state > should show loading spinner when markdown is loading 3ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
× SkillDetail > Skill rendering > should render skill details correctly 3ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
× SkillDetail > Skill rendering > should show skill not found when id does not exist 2ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
× SkillDetail > Copy functionality > should copy skill name to clipboard when clicked 4ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
× SkillDetail > Star button integration > should render star button component with correct count 3ms
→ [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
 
⎯⎯⎯⎯⎯⎯⎯ Failed Tests 6 ⎯⎯⎯⎯⎯⎯⎯
 
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Loading state > should show loading spinner when context is loading
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Loading state > should show loading spinner when markdown is loading
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Skill rendering > should render skill details correctly
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Skill rendering > should show skill not found when id does not exist
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Copy functionality > should copy skill name to clipboard when clicked
FAIL src/pages/__tests__/SkillDetail.test.tsx > SkillDetail > Star button integration > should render star button component with correct count
Error: [vitest] No "SkillProvider" export is defined on the "../../context/SkillContext" mock. Did you forget to return it from "vi.mock"?
If you need to partially mock a module, you can use "importOriginal" helper inside:
 
vi.mock(import("../../context/SkillContext"), async (importOriginal) => {
const actual = await importOriginal()
return {
...actual,
// your mocked methods
}
})
 
Γ¥» wrapper src/utils/testUtils.tsx:25:10
23| wrapper: ({ children }) => (
24| <MemoryRouter initialEntries={[route]}>
25| <SkillProvider>
| ^
26| {/* If path is provided and not default, wrap in Route to in…
27| <Routes>
Γ¥» Object.react_stack_bottom_frame node_modules/react-dom/cjs/react-dom-client.development.js:25904:20
Γ¥» renderWithHooks node_modules/react-dom/cjs/react-dom-client.development.js:7662:22
Γ¥» updateFunctionComponent node_modules/react-dom/cjs/react-dom-client.development.js:10166:19
Γ¥» beginWork node_modules/react-dom/cjs/react-dom-client.development.js:11778:18
Γ¥» runWithFiberInDEV node_modules/react-dom/cjs/react-dom-client.development.js:874:13
Γ¥» performUnitOfWork node_modules/react-dom/cjs/react-dom-client.development.js:17641:22
Γ¥» workLoopSync node_modules/react-dom/cjs/react-dom-client.development.js:17469:41
 
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/6]⎯
 
Test Files 1 failed (1)
Tests 6 failed (6)
Start at 23:48:07
Duration 1.82s (transform 92ms, setup 118ms, collect 261ms, tests 44ms, environment 636ms, prepare 126ms)