testing-library/preact-testing-library

It seems that current published version 0.0.3 is older than the source code here

tobiasweibel opened this issue · 7 comments

  • react-testing-library version: 0.0.3
  • node version: 10.15.3
  • yarn version: 1.15.2

Relevant code (example from readme):

import {render} from 'preact-testing-library'

const {rerender} = render(<NumberDisplay number={1} />)

// re-render the same component with different props
rerender(<NumberDisplay number={2} />)

Problem description:
I basically wanted to use the rerender method but it's undefined. Then I digged into the dist/index.js file and it looks for me that that compiled code is basically before #4 was merged. Also other render() return values are mssing. Since version 0.0.3 was released after #4 I guess that this version was somehow built with old code in dist repository.

Suggested solution:
Republish latest code with a new version.

Would be nice to get that fixed!

Confirming this, the current published version 0.3.0 does not contain debug method for example. Let me know if you guys need help releasing a new version, would be happy to collaborate!

Oops, I'm sorry for this.. Not sure how I have missed it. Anyways, have updated to version 0.4.0 along with #16, #15. Can confirm by dist/index.js has methods like debug, unmount, rerender

@molefrog @tobiasweibel @philippkast Ping 🔉 Will close it, once you guys can confirm.

@antsmartian version 0.4.0 fixes the problem. Thanks!

Closing this issue.. Thanks everyone for reporting this!

Just updated the package, everything seems to work now. Thanks @antsmartian