chore: remove test log file
This commit is contained in:
@@ -1,70 +0,0 @@
|
||||
|
||||
[1m[7m[36m RUN [39m[27m[22m [36mv2.1.9 [39m[90mC:/Users/shiva/Desktop/ag/antigravity-awesome-skills/web-app[39m
|
||||
|
||||
[31mΓ¥»[39m src/pages/__tests__/SkillDetail.test.tsx [2m([22m[2m6 tests[22m[2m | [22m[31m6 failed[39m[2m)[22m[90m 44[2mms[22m[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mLoading state[2m > [22mshould show loading spinner when context is loading[90m 27[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mLoading state[2m > [22mshould show loading spinner when markdown is loading[90m 3[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mSkill rendering[2m > [22mshould render skill details correctly[90m 3[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mSkill rendering[2m > [22mshould show skill not found when id does not exist[90m 2[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mCopy functionality[2m > [22mshould copy skill name to clipboard when clicked[90m 4[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
[31m [31m×[31m SkillDetail[2m > [22mStar button integration[2m > [22mshould render star button component with correct count[90m 3[2mms[22m[31m[39m
|
||||
[31m → [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:
|
||||
[39m
|
||||
|
||||
⎯⎯⎯⎯⎯⎯⎯ 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]⎯
|
||||
|
||||
[2m Test Files [22m [1m[31m1 failed[39m[22m[90m (1)[39m
|
||||
[2m Tests [22m [1m[31m6 failed[39m[22m[90m (6)[39m
|
||||
[2m Start at [22m 23:48:07
|
||||
[2m Duration [22m 1.82s[2m (transform 92ms, setup 118ms, collect 261ms, tests 44ms, environment 636ms, prepare 126ms)[22m
|
||||
|
||||
Reference in New Issue
Block a user