You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a developer that is trying to test a hook-based function component, I want to see a linting error in my editor when I try to use Enzyme, so I learn to not use that pattern ASAP.
Background
Until [email protected], most components were written using class components. Additionally, most components were tested with Enzyme.
Once [email protected] was released, people started using function components with hooks.
Issue Description
As a developer that is trying to test a hook-based
function
component, I want to see a linting error in my editor when I try to use Enzyme, so I learn to not use that pattern ASAP.Background
Until [email protected], most components were written using
class
components. Additionally, most components were tested with Enzyme.Once [email protected] was released, people started using
function
components with hooks.Problem
People run into problems when trying to test hook-based function components with Enzyme because Enzyme doesn't fully support hooks.
Actual example of VFS team member encountering this problem:
Front end tasks
Acceptance Criteria
Developers see a linting error in their console when they try to test a hook-based function component using Enzyme.
How to configure this issue
product support
,analytics-insights
,operations
,service-design
,tools-be
,tools-fe
)backend
,frontend
,devops
,design
,research
,product
,ia
,qa
,analytics
,contact center
,research
,accessibility
,content
)bug
,request
,discovery
,documentation
, etc.)The text was updated successfully, but these errors were encountered: