René's URL Explorer Experiment


Title: Abusing the __mocks__ folder · Issue #250 · patternfly/patternfly-react · GitHub

Open Graph Title: Abusing the __mocks__ folder · Issue #250 · patternfly/patternfly-react

X Title: Abusing the __mocks__ folder · Issue #250 · patternfly/patternfly-react

Description: The __mocks__ folder became a very popular convention in this project. It mostly used to wrap components and demonstrate them in a storybook. But, the jest framework has a totally different story about it: Create a manual mock by saving ...

Open Graph Description: The __mocks__ folder became a very popular convention in this project. It mostly used to wrap components and demonstrate them in a storybook. But, the jest framework has a totally different story a...

X Description: The __mocks__ folder became a very popular convention in this project. It mostly used to wrap components and demonstrate them in a storybook. But, the jest framework has a totally different story a...

Opengraph URL: https://github.com/patternfly/patternfly-react/issues/250

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Abusing the __mocks__ folder","articleBody":"**The `__mocks__` folder became a very popular convention in this project.**\r\nIt mostly used to wrap components and demonstrate them in a storybook.\r\n\r\nBut, the jest framework has a totally different story about it:\r\n> Create a manual mock by saving a mock implementation in the __mocks__ folder. This allows you to specify the implementation, and it can be used across test files.\r\n\r\n**Those manual mocks can be an amazing tool when writing tests!**\r\nhttps://facebook.github.io/jest/docs/en/manual-mocks.html\r\n\r\nThere is any reason why we are abusing the `__mocks__` convention?\r\nShould we take some action and migrate?\r\n\r\nSo many mocks:\r\n![patternfly-react-mocks](https://user-images.githubusercontent.com/1262502/36630083-5c6f471c-1969-11e8-96b8-4b1d32306b75.png)\r\n","author":{"url":"https://github.com/sharvit","@type":"Person","name":"sharvit"},"datePublished":"2018-02-24T12:02:26Z","url":"https://github.com/patternfly/patternfly-react/issues/250"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b607d263-5a17-7667-397a-1ce905e5db11
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBB8:25598F:E5938:13A0FF:6B00BAC8
html-safe-noncea6b63e07a069ef367243ee41e167c988c901c31a86198c939ff0745173341fe5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkI4OjI1NTk4RjpFNTkzODoxM0EwRkY6NkIwMEJBQzgiLCJ2aXNpdG9yX2lkIjoiNTEwOTU0NDQxMTgxMDE4ODI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb31a771739497af8ec8d7df7d6f7b12a6604f5f52cbe81d334206c76ccb94096
hovercard-subject-tagissue:299936107
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patternfly/patternfly-react/250/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d59cc3f567059014add04321df27a5d9113c339e8dafc40dc21e1220007267b4/patternfly/patternfly-react/issues/250
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d59cc3f567059014add04321df27a5d9113c339e8dafc40dc21e1220007267b4/patternfly/patternfly-react/issues/250
og:image:altThe __mocks__ folder became a very popular convention in this project. It mostly used to wrap components and demonstrate them in a storybook. But, the jest framework has a totally different story a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesharvit
hostnamegithub.com
expected-hostnamegithub.com
None1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2
turbo-cache-controlno-preview
go-importgithub.com/patternfly/patternfly-react git https://github.com/patternfly/patternfly-react.git
octolytics-dimension-user_id6391110
octolytics-dimension-user_loginpatternfly
octolytics-dimension-repository_id84372347
octolytics-dimension-repository_nwopatternfly/patternfly-react
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id84372347
octolytics-dimension-repository_network_root_nwopatternfly/patternfly-react
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5429cbfc6aca8c7b9a086a3c8f47400346f38cc9
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/patternfly/patternfly-react/issues/250#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpatternfly%2Fpatternfly-react%2Fissues%2F250
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpatternfly%2Fpatternfly-react%2Fissues%2F250
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=patternfly%2Fpatternfly-react
Reloadhttps://github.com/patternfly/patternfly-react/issues/250
Reloadhttps://github.com/patternfly/patternfly-react/issues/250
Reloadhttps://github.com/patternfly/patternfly-react/issues/250
patternflyhttps://github.com/patternfly
patternfly-reacthttps://github.com/patternfly/patternfly-react
Codehttps://github.com/patternfly/patternfly-react
Issues222 (222)https://github.com/patternfly/patternfly-react/issues
Pull requests36 (36)https://github.com/patternfly/patternfly-react/pulls
Discussionshttps://github.com/patternfly/patternfly-react/discussions
Actionshttps://github.com/patternfly/patternfly-react/actions
Projectshttps://github.com/patternfly/patternfly-react/projects
Wikihttps://github.com/patternfly/patternfly-react/wiki
Security and qualityhttps://github.com/patternfly/patternfly-react/security
Insightshttps://github.com/patternfly/patternfly-react/insights
https://github.com/patternfly/patternfly-react
New issuehttps://github.com/login?return_to=https://github.com/patternfly/patternfly-react/issues/250
New issuehttps://github.com/login?return_to=https://github.com/patternfly/patternfly-react/issues/250
Abusing the __mocks__ folderhttps://github.com/patternfly/patternfly-react/issues/250#top
https://github.com/priley86
wontfixhttps://github.com/patternfly/patternfly-react/issues?q=state%3Aopen%20label%3A%22wontfix%22
https://github.com/sharvit
sharvithttps://github.com/sharvit
on Feb 24, 2018https://github.com/patternfly/patternfly-react/issues/250#issue-299936107
https://facebook.github.io/jest/docs/en/manual-mocks.htmlhttps://facebook.github.io/jest/docs/en/manual-mocks.html
https://user-images.githubusercontent.com/1262502/36630083-5c6f471c-1969-11e8-96b8-4b1d32306b75.png
sharvithttps://github.com/sharvit
questionhttps://github.com/patternfly/patternfly-react/issues?q=state%3Aopen%20label%3A%22question%22
on Feb 24, 2018https://github.com/patternfly/patternfly-react/issues/250#event-1490409234
https://github.com/priley86
priley86https://github.com/priley86
on Feb 24, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368225322
https://github.com/priley86
priley86https://github.com/priley86
on Feb 24, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368225351
https://github.com/priley86
priley86https://github.com/priley86
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368514706
@sharvithttps://github.com/sharvit
https://github.com/sharvit
sharvithttps://github.com/sharvit
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368527067
@priley86https://github.com/priley86
https://github.com/priley86
priley86https://github.com/priley86
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368532769
@sharvithttps://github.com/sharvit
@jeff-phillips-18https://github.com/jeff-phillips-18
priley86https://github.com/priley86
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#event-1492216788
priley86https://github.com/priley86
chorehttps://github.com/patternfly/patternfly-react/issues?q=state%3Aopen%20label%3A%22chore%22
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#event-1492217277
https://github.com/priley86
priley86https://github.com/priley86
on Feb 26, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368533163
sharvithttps://github.com/sharvit
on Feb 27, 2018https://github.com/patternfly/patternfly-react/issues/250#event-1494882058
feat(EmptyState): Create an EmptyStatePatternhttps://github.com/sharvit/patternfly-react/commit/7270936801c95d1c532ed59c49ca2db828174a1d
7270936https://github.com/sharvit/patternfly-react/commit/7270936801c95d1c532ed59c49ca2db828174a1d
https://github.com/sharvit
sharvithttps://github.com/sharvit
on Feb 27, 2018https://github.com/patternfly/patternfly-react/issues/250#issuecomment-368956017
@priley86https://github.com/priley86
#256https://github.com/patternfly/patternfly-react/pull/256
https://github.com/apps/stale
stalehttps://github.com/apps/stale
on Jun 6, 2019https://github.com/patternfly/patternfly-react/issues/250#issuecomment-499593188
stalehttps://github.com/apps/stale
wontfixhttps://github.com/patternfly/patternfly-react/issues?q=state%3Aopen%20label%3A%22wontfix%22
on Jun 6, 2019https://github.com/patternfly/patternfly-react/issues/250#event-2395108506
sharvithttps://github.com/sharvit
completedhttps://github.com/patternfly/patternfly-react/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jun 8, 2019https://github.com/patternfly/patternfly-react/issues/250#event-2398843239
Sign up for freehttps://github.com/signup?return_to=https://github.com/patternfly/patternfly-react/issues/250
Sign in to commenthttps://github.com/login?return_to=https://github.com/patternfly/patternfly-react/issues/250
priley86https://github.com/priley86
wontfixhttps://github.com/patternfly/patternfly-react/issues?q=state%3Aopen%20label%3A%22wontfix%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.