Unit test: I can't use `template` to test the component

I follow the documentation for use template instead html to render my component
stenciljs: unit testing - using template

But i came a cross with the error: Property ‘bees-flat-button’ does not exist on type ‘JSX.IntrinsicElements’

I already imported React in top level of this documents

Had similar problems: You have to rename the file to .spec.tsx instead of .spec.ts.
For v3 Stencil now notes this in the docs.
See also Testing: newSpecPage().template() is not parsed as JSX · Issue #2850 · ionic-team/stencil · GitHub and unit testing - In Stencil with Jest, how to test object property on components using template? - Stack Overflow