solidjs / solid-testing-library

Simple and complete Solid testing utilities that encourage good testing practices.
MIT License
201 stars 19 forks source link

Module '"solid-testing-library"' has no exported member 'afterEach' #36

Closed captDaylight closed 1 year ago

captDaylight commented 1 year ago

I'm running through this testing example and seeing this error:

Screen Shot 2023-04-27 at 7 20 56 PM
atk commented 1 year ago

Thank you for raising this issue, but unfortunately, it is in the wrong repo.

afterEach is not part of testing-library, but of testing frameworks like mocha or vitest. We export a cleanup function that can be called manually in testing frameworks not supporting this global, like e.g. uvu.

The error is in the new solid docs, not in the solid-testing-library. I'll talk to our docs team to have this corrected soon.

captDaylight commented 1 year ago

Thank you @atk for the fast response!