Skip to content

Commit

Permalink
add snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Riley Bracken committed Oct 28, 2022
1 parent 1c1bed0 commit 6c7edfa
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions vim/UltiSnips/typescriptreact.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
snippet test
/**
* @jest-environment jsdom
*/
import { render, screen } from '@tests/utils';

import $1 from '../index';

describe('$1', () => {
it('$2', async () => {
render(<$1 />);
expect(screen).toBeInstanceOf($3)
});
});
endsnippet

snippet comp
import React from 'react';

interface Props {
$2
};

const $1 = ({ $3 }: Props) => {
return <div>$1</div>;
}

export default $1;
endsnippet

0 comments on commit 6c7edfa

Please sign in to comment.