r-sugi / nextjs-tdd-template

https://nextjs-tdd-templatestorybook-rsugis-projects.vercel.app
0 stars 0 forks source link

fix: mocksフォルダをsrc内におく #192

Closed r-sugi closed 2 months ago

r-sugi commented 2 months ago

PR Type

enhancement, tests


Description


Changes walkthrough 📝

Relevant files
Tests
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.
+1/-1     
useFetchMembers.query.test.ts
Update import path for activeMember fixture                           

src/core/usecases/member/useFetchMembers.query.test.ts - Updated import path for `activeMember` fixture.
+1/-1     
index.stories.tsx
Update import paths for member and auth fixtures                 

src/feature/admin/members/index/index.stories.tsx
  • Updated import paths for fixtureGetMembersByStatus and
    stubAuthContext.
  • +2/-2     
    index.test.tsx
    Update import path for member fixture                                       

    src/feature/admin/members/index/index.test.tsx - Updated import path for `fixtureGetMembersByStatus`.
    +1/-1     
    AuthProvider.tsx
    Update import path for auth context fixture                           

    src/feature/auth/provider/AuthProvider.tsx - Updated import path for `stubAuthContext`.
    +1/-1     
    _index.page.test.tsx
    Update import path for article mock                                           

    src/pages/articles/[id]/_index.page.test.tsx - Updated import path for `mockArticle1`.
    +1/-1     
    index.test.tsx
    Update import path for article mock                                           

    src/pages/articles/[id]/_server/index.test.tsx - Updated import path for `mockArticle1`.
    +1/-1     
    Enhancement
    11 files
    browser.ts
    Add MSW worker setup for browser                                                 

    src/mocks/browser.ts - Added setup for MSW worker with handlers.
    +5/-1     
    activeMember.ts
    Add activeMember fixture                                                                 

    src/mocks/fixtures/activeMember.ts - Added fixture for `activeMember`.
    +13/-1   
    article.ts
    Add mock articles for testing                                                       

    src/mocks/fixtures/article.ts - Added mock articles `mockArticle1` and `mockArticle2`.
    +20/-1   
    index.ts
    Add fixture for member status                                                       

    src/mocks/fixtures/member/index.ts - Added fixture for `fixtureGetMembersByStatus`.
    +43/-1   
    useStubAuthContext.tsx
    Add stub for authentication context                                           

    src/mocks/fixtures/provider/useStubAuthContext.tsx - Added stub for authentication context.
    +13/-1   
    index.ts
    Initialize mock server or worker                                                 

    src/mocks/index.ts
  • Added initialization for mock server or worker based on environment.
  • +13/-1   
    index.ts
    Update import paths for article mocks                                       

    src/mocks/rest/article/index.ts - Updated import paths for article mocks.
    +1/-1     
    restHandlers.ts
    Add export for article handlers                                                   

    src/mocks/rest/restHandlers.ts - Added export for article handlers.
    +4/-1     
    server.ts
    Add MSW server setup for node                                                       

    src/mocks/server.ts - Added setup for MSW server with handlers.
    +5/-1     
    _app.page.tsx
    Update require path for mocks initialization                         

    src/pages/_app.page.tsx - Updated require path for mocks initialization.
    +1/-1     
    index.page.ts
    Update import paths for article mocks                                       

    src/pages/api/articles/[id]/index.page.ts - Updated import paths for article mocks.
    +1/-1     

    💡 PR-Agent usage: Comment /help on the PR to get a list of all available PR-Agent tools and their descriptions

    vercel[bot] commented 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
    github-actions[bot] commented 2 months ago

    PR Reviewer Guide 🔍

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ No key issues to review
    github-actions[bot] commented 2 months ago

    PR Code Suggestions ✨

    No code suggestions found for the PR.