diff --git a/web-app/test_output.txt b/web-app/test_output.txt deleted file mode 100644 index 22a23c19..00000000 --- a/web-app/test_output.txt +++ /dev/null @@ -1,70 +0,0 @@ - - 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| - 25| - | ^ - 26| {/* If path is provided and not default, wrap in Route to in… - 27| - ❯ 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) -