first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
define(["require", "exports", "tslib", "react", "@testing-library/react", "./BaseComponent"], function (require, exports, tslib_1, React, react_1, BaseComponent_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
describe('BaseComponent', function () {
it('can resolve refs', function () {
var Foo = /** @class */ (function (_super) {
tslib_1.__extends(Foo, _super);
function Foo() {
return _super !== null && _super.apply(this, arguments) || this;
}
Foo.prototype.render = function () {
return (React.createElement("div", {
// @ts-expect-error - react 18 types issue
ref: this._resolveRef('root') }));
};
return Foo;
}(BaseComponent_1.BaseComponent));
var container = (0, react_1.render)(React.createElement(Foo, null)).container;
var component = container.firstChild;
expect(component).toBeTruthy();
});
});
});
//# sourceMappingURL=BaseComponent.test.js.map