Closed r-sugi closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nextjs-tdd-template_storybook | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 11, 2024 10:41am |
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪ |
🧪 No relevant tests |
🔒 No security concerns identified |
⚡ No key issues to review |
No code suggestions found for the PR.
PR Type
enhancement, tests
Description
mocks
フォルダをsrc
内に移動し、関連するインポートパスを更新しました。Changes walkthrough 📝
7 files
useFetchActiveMember.query.test.ts
Update import path for activeMember fixture
src/core/usecases/member/useFetchActiveMember.query.test.ts - Updated import path for `activeMember` fixture.
useFetchMembers.query.test.ts
Update import path for activeMember fixture
src/core/usecases/member/useFetchMembers.query.test.ts - Updated import path for `activeMember` fixture.
index.stories.tsx
Update import paths for member and auth fixtures
src/feature/admin/members/index/index.stories.tsx
fixtureGetMembersByStatus
andstubAuthContext
.index.test.tsx
Update import path for member fixture
src/feature/admin/members/index/index.test.tsx - Updated import path for `fixtureGetMembersByStatus`.
AuthProvider.tsx
Update import path for auth context fixture
src/feature/auth/provider/AuthProvider.tsx - Updated import path for `stubAuthContext`.
_index.page.test.tsx
Update import path for article mock
src/pages/articles/[id]/_index.page.test.tsx - Updated import path for `mockArticle1`.
index.test.tsx
Update import path for article mock
src/pages/articles/[id]/_server/index.test.tsx - Updated import path for `mockArticle1`.
11 files
browser.ts
Add MSW worker setup for browser
src/mocks/browser.ts - Added setup for MSW worker with handlers.
activeMember.ts
Add activeMember fixture
src/mocks/fixtures/activeMember.ts - Added fixture for `activeMember`.
article.ts
Add mock articles for testing
src/mocks/fixtures/article.ts - Added mock articles `mockArticle1` and `mockArticle2`.
index.ts
Add fixture for member status
src/mocks/fixtures/member/index.ts - Added fixture for `fixtureGetMembersByStatus`.
useStubAuthContext.tsx
Add stub for authentication context
src/mocks/fixtures/provider/useStubAuthContext.tsx - Added stub for authentication context.
index.ts
Initialize mock server or worker
src/mocks/index.ts
index.ts
Update import paths for article mocks
src/mocks/rest/article/index.ts - Updated import paths for article mocks.
restHandlers.ts
Add export for article handlers
src/mocks/rest/restHandlers.ts - Added export for article handlers.
server.ts
Add MSW server setup for node
src/mocks/server.ts - Added setup for MSW server with handlers.
_app.page.tsx
Update require path for mocks initialization
src/pages/_app.page.tsx - Updated require path for mocks initialization.
index.page.ts
Update import paths for article mocks
src/pages/api/articles/[id]/index.page.ts - Updated import paths for article mocks.