Closed ghortat closed 1 year ago
typescript@3.8.3
is outdated since May 2020 and typescript@^4
is stable since August 2020.
We won't work on compatibility with old Typescript versions.
Ok i will update and let you know if this solved the problem.
Reproduction example
No sandbox
Prerequisites
For webserver prod to start:
Expected behavior
Type errors should not exist and webpack server should run properly without ts errors same as with userEvent 13.5.
Actual behavior
ERROR in C:/NFVRI/dashboard-ng/node_modules/@testing-library/user-event/dist/types/setup/setup.d.ts(15,5): TS2502: 'dispatchUIEvent' is referenced directly or indirectly in its own type annotation. ERROR in C:/NFVRI/dashboard-ng/node_modules/@testing-library/user-event/dist/types/utils/dataTransfer/Clipboard.d.ts(1,114): TS2304: Cannot find name 'ClipboardItem'. Version: typescript 3.8.3, eslint 6.8.0
User-event version
14.4.3
Environment
Testing Library framework:
@testing-library/react@12.1.5
"@testing-library/jest-dom": "5.16.5"
,"@testing-library/dom": "7.31.2"
JS framework:
react@16.13.1
Test environment:
jest@27.5.1
ts-jest@27.1.5
DOM implementation:
jsdom
webpack@4.43
Additional context
I am not so confident with ES modules and advanced configuration needed in order to support each and every one of the new features, however at that point i do not understand what breaking changes cause these errors. Perhaps this is caused due to Typescript discrepancy and the new testing dependencies cannot co-operate with TS 3.8.3 version.