enzymejs/enzyme

Deprecation of .simulate()

開放

#2,173 建立於 2019年6月25日

 (10 則留言) (11 個反應) (0 位負責人)JavaScript (1,970 個分叉)batch import
docshelp wanted

倉庫指標

星標
 (19,829 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hello! Big fan of enzyme here.

I use Enzyme a lot for unit testing and I've noticed recently that people are consistently recommending people use instance prop functions versus using the simulate behavior provided by Enzyme because of the bad implementation.

Is there anyway we could get the docs updated with what the preferred solution is? It's not really clear as the docs stand right now.

Can we also add a note that there are plans to deprecate it Enzyme v4 too? I saw that in the comments and I was surprised by it. I'm more than happy to put in a PR if that is the preferred solution.

Cheers.

貢獻者指南