Comments (4)
I can reproduce with examples/typescript/
in this repository by upgrading the typescript
dependency to a 5.x release. It looks like the extensions to the Enzyme types in https://github.com/preactjs/enzyme-adapter-preact-pure/blob/master/index.d.ts, which are included in the package, are not being seen by TS any more.
For examples/typescript/
I was able to work around this by manually copying the types into the local project:
cd examples/typescript/
npm install typescript@latest
cp node_modules/enzyme-adapter-preact-pure/index.d.ts enzyme-extensions.d.ts
npm test
I am not sure of the proper fix for this in TS 5.0 offhand. If anyone knows, feel free to chime in.
from enzyme-adapter-preact-pure.
hello, is there anything else we could do about it? 🤔
from enzyme-adapter-preact-pure.
Also waiting for update
from enzyme-adapter-preact-pure.
Related Issues (20)
- Move to enzyme org? HOT 2
- compatibility issue with typescript and function component HOT 1
- `suspenseFallback` option is not supported HOT 3
- An in-range update of ts-node is breaking the build 🚨 HOT 4
- Usage with declared preact/compat type
- Non-vnode children not supported with shallow rendering HOT 4
- Breaking changes planned for v3.0.0 HOT 1
- simulate(): TypeError: Cannot set property target of [object Event] which has only a getter HOT 4
- Update mount adapter so that events bubble by default
- shallow renders which return `null` cannot have setState called on them HOT 2
- Property 'createElement' in type 'Adapter' is not assignable to the same property in base type 'EnzymeAdapter'. HOT 10
- Jest encountered an unexpected token export with the adapter HOT 9
- Typescript example does not work
- Typescript example still does not work HOT 6
- Error: Expected VDOM node to be a DOM node but got function Ref(props) HOT 5
- No `LICENSE` file HOT 1
- Enzyme `contains` example from Enzyme docs does not pass HOT 3
- Jest fails to parse TSX HOT 2
- TypeError: your adapter does not support `wrappingComponent`. Try upgrading it! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enzyme-adapter-preact-pure.