import { Component, h, Prop, Watch } from '@stencil/core';
import { newSpecPage } from '@stencil/core/testing';
declare global {
namespace JSX {
interface IntrinsicElements {
[elemName: string]: any;
}
}
}
describe('extends', () => {
it('renders a component that extends from a base class', async () => {
class Base {
baseProp = 'base';
}
@Component({ tag: 'cmp-a' })
class CmpA extends Base {
render() {
return `${this.baseProp}`;
}
}
const page = await newSpecPage({
components: [CmpA],
html: `