javascript
javascript copied to clipboard
Move A11yNotice out of the tests folder
Explanation
A11yNotice is a styled component, not a test helper. It is located in the src/tests
folder and should be just in src
.
Technical decisions
Feedback?
I think it has to do with the fact that they have been moved to separate packages.
My hypothesis is that jest-styled-components
behaves differently in regard to relative imports than in regard to @yoast/*
imports. It would make sense that jest-styled-components
doesn't care about "external" packages.
Good point, maybe it is fine. Still would be nice to be confirmed though. And the moving out of the test folder still remains.
As discussed with Anton, repurposing this PR for only the first point (moving from the test folder).
The second (no A11yNotice styled components output in snapshots) is no longer important enough. It might be expected behavior as Alexander says above. Or it may even be fixed within jest-styled-components
itself if it is a styled-components
v4 issue.