Skip to content

Commit

Permalink
Merge pull request #81 from TNG/dependabot/npm_and_yarn/testing-libra…
Browse files Browse the repository at this point in the history
…ry/user-event-14.5.2

Bump @testing-library/user-event from 12.8.3 to 14.5.2
  • Loading branch information
ChristophNiehoff authored Apr 19, 2024
2 parents e2878f3 + 7a75394 commit ac20d14
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
23 changes: 9 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@testing-library/user-event": "^12.8.3",
"@testing-library/user-event": "^14.5.2",
"@types/basic-auth": "^1.1.3",
"@types/jest": "^27.5.2",
"@types/koa__cors": "^3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/client/components/copybutton/copybutton.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';
import React from 'react';
import { render, screen, waitFor, within } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import fireEvent from '@testing-library/user-event';

import CopyButton from './copybutton';
import * as utils from '../../utils/utils';
Expand Down Expand Up @@ -30,7 +30,7 @@ describe('CopyButton', () => {
const button = await screen.findByRole('button', { name: 'Button Text' });

// when
userEvent.click(button);
await fireEvent.click(button);

// then
expect(copyToClipboardSpy).toHaveBeenCalledWith('Hello, world!');
Expand Down

0 comments on commit ac20d14

Please sign in to comment.