-
-
Notifications
You must be signed in to change notification settings - Fork 642
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
feat: add tests for Index and build pages script #3044
feat: add tests for Index and build pages script #3044
Conversation
…into jestTests
✅ Deploy Preview for asyncapi-website ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-3044--asyncapi-website.netlify.app/ |
…bsite into caseStudiesTest
fs.mkdirSync(TEST_DIR, { recursive: true }); | ||
fs.mkdirSync(SRC_DIR, { recursive: true }); | ||
fs.mkdirSync(TARGET_DIR, { recursive: true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fs
module works in CI and locally in tests, then why have you mocked all those function calls in previous test PRs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests seems to be perfect. Why haven't you used the actual fs module in previous PRs? Any specific reason?
I felt like mocking was a better approach for them, but with this script, I thought using the actual fs module would be better. I also did it to experiment with the actual fs module, and it worked well. 😅 But as you commented on other PRs i will update tests for them as well and use fs module without mocking it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/rtm |
This PR adds test for index.js and build-pages.js scripts