aerial.nvim/tests/treesitter/tsx_test.tsx
brunnseb 7045e7cb00
feat(tsx): treesitter support for JSX symbols (#365)
Co-authored-by: Sebastian <sebastian.brunner@ti8m.ch>
2024-04-19 10:56:26 -04:00

44 lines
803 B
TypeScript

function fn_1() {
return <div />;
}
function fn_2(): void;
interface Iface_1 {}
class Cl_1 {
meth_1() {}
cl_fn_3 = () => {};
}
type Type1 = {};
const fn_3 = () => {};
const const_var = 'value';
let let_var = 'value';
describe("UnitTest", () => {
afterAll(() => {});
afterEach(() => {});
beforeAll(() => {});
beforeEach(() => {});
test("should describe the test", () => {});
it("is an alias for test", () => {});
test.skip("skip this test", () => {});
test.todo("this is a todo");
describe.each([])("Test Suite", () => {
test.each([])("runs multiple times", () => {});
});
});
function* g() {}
const g_1 = function* () {};
return <div>
<SomeComponent className='some-class'/>
<ul>
<li>First List Element</li>
<li>Second List Element</li>
</ul>
</div>