diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index d02ddfd..a943f82 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "es5", + "target": "es6", "lib": ["es5", "dom"], "types": ["node", "cypress", "@testing-library/cypress"], "moduleResolution": "node", diff --git a/src/components/Button/index.test.tsx b/src/components/Button/index.test.tsx new file mode 100644 index 0000000..282ab06 --- /dev/null +++ b/src/components/Button/index.test.tsx @@ -0,0 +1,33 @@ +import { render, screen } from '@testing-library/react'; +import userEvent from '@testing-library/user-event'; + +import Button from '.'; + +const handleButtonClick = jest.fn(); + +describe('Button', () => { + test('renders a button on the page', () => { + render(