Skip to content
Discussion options

You must be logged in to vote

This warning shows up because the @reach/dialog package we wrap in our primitive does a check to make sure folks are using the styles (https://github.com/reach/reach-ui/blob/develop/packages/utils/src/index.tsx#L83). I'm not sure why they thought this was wise, but I'm seeing this warning locally too.

Please freely ignore the warning for now, I will add a ticket to our backlog to apply a root style to disable this warning in the next release.

If you're seeing the warning in your tests and it's a big bother, you can mock out the checkStyles function like this:

jest.mock('@reach/utils', () => ({
  ...jest.requireActual('@reach/utils'),
  checkStyles: jest.fn(),
}));

source

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghelton
Comment options

@TheSisb
Comment options

Answer selected by ghelton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants