Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Module mocking, and more #26858

Merged
merged 48 commits into from May 6, 2024
Merged

Docs: Module mocking, and more #26858

merged 48 commits into from May 6, 2024

Commits on Apr 15, 2024

  1. WIP

    kylegach committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1efccbe View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Split into 3 pages

    kylegach committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    0242371 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ff3f2e9 View commit details
    Browse the repository at this point in the history
  3. More mocking content

    - Providers
        - Configuring mocked providers with parameters
    - Network requests
        - Bad link
    - Modules
        - Better mock files section
        - Using mocked files in stories
    kylegach committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    92e1382 View commit details
    Browse the repository at this point in the history
  4. Updates for Next.js

    - Warning for absolute imports & mocking
    - Module aliases
    - Subpath imports
    - Mocking modules
    - `@storybook/nextjs/cache.mock` module API
    kylegach committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    75b0820 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    299a2c2 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2024

  1. Update Decorators and Interaction tests pages

    - Decorators
        - Focus the "context" section on only that argument
        - Move irrelevant examples and snippets to the Story rendering page
    - Interaction Testing
        - Under the Write an interaction test section, add:
            - Run code before each test section
            - Mocked modules section
    kylegach committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    ec6742b View commit details
    Browse the repository at this point in the history
  2. Add missing TODOs

    kylegach committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    abc9b7c View commit details
    Browse the repository at this point in the history
  3. Add vite example

    Co-authored-by: Jeppe Reinhold <jeppe@chromatic.com>
    kylegach and JReinhold committed Apr 17, 2024
    Configuration menu
    Copy the full SHA
    194a9bc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f2f4d13 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e7c0676 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5d8ee28 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4faf1ae View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2024

  1. Address feedback

    - Next.js
        - Add portable stories section
    - Mocking modules
        - Clarify requirements of mock files
        - Prose and snippet tweaks
    - Interaction testing
        - Bring over `mockdate` example
        - Prose and snippet tweaks
    kylegach committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    2ac03c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1da9c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    71a4cea View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5bab73a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    46c31eb View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eef3290 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. Add back nextjs router/navigation override instructions

    Other improvements:
    - Consistency improvements in snippets throughout
    - Prose tweaks
    kylegach committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    f88bea5 View commit details
    Browse the repository at this point in the history
  2. Improve MSW snippets

    - Use MSW 2.0 API
    - Use loader instead of decorator
    - Improve snippet filename format
    kylegach committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    3f7e44c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8eaeb94 View commit details
    Browse the repository at this point in the history
  4. Prettify snippets

    kylegach committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    f4914e3 View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Configuration menu
    Copy the full SHA
    cf2be73 View commit details
    Browse the repository at this point in the history
  2. Address review

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    42773e3 View commit details
    Browse the repository at this point in the history
  3. add cache.mock entrypoint to nextjs

    JReinhold authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    e850d36 View commit details
    Browse the repository at this point in the history
  4. Try another mock naming convention

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    401fd26 View commit details
    Browse the repository at this point in the history
  5. Bind this

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9920353 View commit details
    Browse the repository at this point in the history
  6. Update snapshot

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    b55673f View commit details
    Browse the repository at this point in the history
  7. Fix name

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a033167 View commit details
    Browse the repository at this point in the history
  8. Hide some junk of next for nwo

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    537fbb2 View commit details
    Browse the repository at this point in the history
  9. Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts

    Co-authored-by: Yann Braga <yannbf@gmail.com>
    2 people authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    7cacdfa View commit details
    Browse the repository at this point in the history
  10. Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts

    Co-authored-by: Yann Braga <yannbf@gmail.com>
    2 people authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    af31a1f View commit details
    Browse the repository at this point in the history
  11. Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts

    Co-authored-by: Yann Braga <yannbf@gmail.com>
    2 people authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    789991f View commit details
    Browse the repository at this point in the history
  12. Update code/frameworks/nextjs/src/export-mocks/navigation/index.ts

    Co-authored-by: Yann Braga <yannbf@gmail.com>
    2 people authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    17c5152 View commit details
    Browse the repository at this point in the history
  13. Hide some junk of next for now

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    fc7e664 View commit details
    Browse the repository at this point in the history
  14. Show redirect and next/cache spies

    kasperpeulen authored and kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    5fafb46 View commit details
    Browse the repository at this point in the history
  15. Apply suggestions from code review

    Co-authored-by: jonniebigodes <joaocontadesenvolvimento@gmail.com>
    kylegach and jonniebigodes committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    a9ce1d4 View commit details
    Browse the repository at this point in the history
  16. Address feedback

    - Re-order TOC items
    - Fix conditional content
    - Improve nextjs module API references
    - Make example snippets more consistent
    - Re-organize subpath imports section of module mocking guide
    - Fix typos, grammar
    kylegach committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    01c6509 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    39689ac View commit details
    Browse the repository at this point in the history

Commits on May 1, 2024

  1. Snippetize examples

    kylegach committed May 1, 2024
    Configuration menu
    Copy the full SHA
    1dca308 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary snippets

    kylegach committed May 1, 2024
    Configuration menu
    Copy the full SHA
    6bf05a1 View commit details
    Browse the repository at this point in the history
  3. Prettify snippets

    kylegach committed May 1, 2024
    Configuration menu
    Copy the full SHA
    c715248 View commit details
    Browse the repository at this point in the history
  4. Address feedback

    - Make nextjs module alias usage more clear
    - Update msw graphql snippets
    - Add preact support for mocking providers
    - Prose improvements
    kylegach committed May 1, 2024
    Configuration menu
    Copy the full SHA
    7be08e3 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Update decorator snippets

    kylegach committed May 3, 2024
    Configuration menu
    Copy the full SHA
    a9d9bfa View commit details
    Browse the repository at this point in the history
  2. Address feedback

    - Snippet consistency
    - Prose tweaks
    kylegach committed May 3, 2024
    Configuration menu
    Copy the full SHA
    d2f7fe8 View commit details
    Browse the repository at this point in the history

Commits on May 6, 2024

  1. Address feedback

    kylegach committed May 6, 2024
    Configuration menu
    Copy the full SHA
    dfa82ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2a0d245 View commit details
    Browse the repository at this point in the history