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
Domain: github.com
{"@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\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-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b607d263-5a17-7667-397a-1ce905e5db11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBB8:25598F:E5938:13A0FF:6B00BAC8 |
| html-safe-nonce | a6b63e07a069ef367243ee41e167c988c901c31a86198c939ff0745173341fe5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkI4OjI1NTk4RjpFNTkzODoxM0EwRkY6NkIwMEJBQzgiLCJ2aXNpdG9yX2lkIjoiNTEwOTU0NDQxMTgxMDE4ODI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b31a771739497af8ec8d7df7d6f7b12a6604f5f52cbe81d334206c76ccb94096 |
| hovercard-subject-tag | issue:299936107 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/patternfly/patternfly-react/250/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d59cc3f567059014add04321df27a5d9113c339e8dafc40dc21e1220007267b4/patternfly/patternfly-react/issues/250 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d59cc3f567059014add04321df27a5d9113c339e8dafc40dc21e1220007267b4/patternfly/patternfly-react/issues/250 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sharvit |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d07c25977adfc5ff6acb0a962a9bc168c07afbda6fef765f9761c350c2ae4a2 |
| turbo-cache-control | no-preview |
| go-import | github.com/patternfly/patternfly-react git https://github.com/patternfly/patternfly-react.git |
| octolytics-dimension-user_id | 6391110 |
| octolytics-dimension-user_login | patternfly |
| octolytics-dimension-repository_id | 84372347 |
| octolytics-dimension-repository_nwo | patternfly/patternfly-react |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84372347 |
| octolytics-dimension-repository_network_root_nwo | patternfly/patternfly-react |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5429cbfc6aca8c7b9a086a3c8f47400346f38cc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width