Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

[Drivers] Make component drivers work for function components with Hooks #784

Closed
conor-cafferkey-sociomantic opened this issue Jan 25, 2019 · 0 comments

Comments

@conor-cafferkey-sociomantic
Copy link
Contributor

conor-cafferkey-sociomantic commented Jan 25, 2019

Currently

Nessie provides a suite of component drivers for use in tests with Enzyme full-DOM rendering.

Problem

Currently the implementation of the drivers assumes that all components are classes not functions. But in Milestone-Hooks! we’re converting all components to functions, so everything breaks 😬

Wanted

Update all component drivers to work with function components. This implies we need to find a way to access the theme context inside the drivers... or find an alternative way of targeting elements.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant