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

write tests for the main @nextwp/core functions #64

Open
CalebBarnes opened this issue Feb 23, 2024 · 0 comments
Open

write tests for the main @nextwp/core functions #64

CalebBarnes opened this issue Feb 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request @nextwp/core

Comments

@CalebBarnes
Copy link
Owner

CalebBarnes commented Feb 23, 2024

So far:

  • setup jest
  • intercepting API requests with msw
  • mocking API response data - just saving the mock json data in the mocks/data directory
  • mocking next.js draftMode function

Need to also exclude tests and mock directories from publishing to npm!

@CalebBarnes CalebBarnes self-assigned this Feb 23, 2024
@CalebBarnes CalebBarnes added @nextwp/core enhancement New feature or request labels Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request @nextwp/core
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant