You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unit testing docs page here: https://stenciljs.com/docs/unit-testing describes two approaches to unit testing, using newSpecPage, or logic only testing using a new MyComponent() constructor. However, when you try to use the constructor logic only testing style, the stencil cli gives you this output. The CLI and docs should be consistent.
Use "newSpecPage()" to instanciate component instances instead of "new MyComp()".
For further information: https://stenciljs.com/docs/unit-testing#newspecpage-
The text was updated successfully, but these errors were encountered:
The unit testing docs page here: https://stenciljs.com/docs/unit-testing describes two approaches to unit testing, using newSpecPage, or logic only testing using a new MyComponent() constructor. However, when you try to use the constructor logic only testing style, the stencil cli gives you this output. The CLI and docs should be consistent.
Also see corresponding issue against the stencil library here: ionic-team/stencil#2275
The text was updated successfully, but these errors were encountered: