diff --git a/packages/react-async-button/package.json b/packages/react-async-button/package.json index 1eaf543..d559b92 100644 --- a/packages/react-async-button/package.json +++ b/packages/react-async-button/package.json @@ -45,7 +45,7 @@ "@testing-library/dom": "^9.0.0", "@testing-library/jest-dom": "^6.0.0", "@testing-library/react": "^14.0.0", - "@testing-library/user-event": "^14.4.0", + "@testing-library/user-event": "^14.5.0", "@types/react": "*", "eslint": "^8.26.0", "eslint-config-wojtekmaj": "^0.9.0", diff --git a/packages/react-async-button/src/AsyncButton.spec.tsx b/packages/react-async-button/src/AsyncButton.spec.tsx index dfa117d..7418e1e 100644 --- a/packages/react-async-button/src/AsyncButton.spec.tsx +++ b/packages/react-async-button/src/AsyncButton.spec.tsx @@ -1,7 +1,7 @@ import { beforeEach, describe, expect, it, vi } from 'vitest'; import React, { createRef } from 'react'; import { act, render, screen } from '@testing-library/react'; -import userEvent from '@testing-library/user-event'; +import { userEvent } from '@testing-library/user-event'; import AsyncButton from './index.js'; diff --git a/packages/react-async-button/tsconfig.node16.json b/packages/react-async-button/tsconfig.node16.json index 60565a0..bee6752 100644 --- a/packages/react-async-button/tsconfig.node16.json +++ b/packages/react-async-button/tsconfig.node16.json @@ -3,6 +3,5 @@ "compilerOptions": { "moduleResolution": "node16", "skipLibCheck": true - }, - "exclude": ["src/**/*.spec.ts", "src/**/*.spec.tsx"] + } } diff --git a/yarn.lock b/yarn.lock index 0c33c1b..2338bb8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -846,12 +846,12 @@ __metadata: languageName: node linkType: hard -"@testing-library/user-event@npm:^14.4.0": - version: 14.4.3 - resolution: "@testing-library/user-event@npm:14.4.3" +"@testing-library/user-event@npm:^14.5.0": + version: 14.5.1 + resolution: "@testing-library/user-event@npm:14.5.1" peerDependencies: "@testing-library/dom": ">=7.21.4" - checksum: 28e1e4ed2fdaa9486e203c6789386be228e305abd3fa41f38c828af415fd4a4e80f4de88de0e502ff11c4b4926f221b874a2a45bcc8170d30714e12dad2c1bd0 + checksum: 1e00d6ead23377885b906db6e46e259161a0efb4138f7527481d7435f3c8f65cb7e3eab2900e2ac1886fa6dd03416e773a3a60dea87a9a2086a7127dee315f6f languageName: node linkType: hard @@ -1202,7 +1202,7 @@ __metadata: "@testing-library/dom": "npm:^9.0.0" "@testing-library/jest-dom": "npm:^6.0.0" "@testing-library/react": "npm:^14.0.0" - "@testing-library/user-event": "npm:^14.4.0" + "@testing-library/user-event": "npm:^14.5.0" "@types/react": "npm:*" eslint: "npm:^8.26.0" eslint-config-wojtekmaj: "npm:^0.9.0"