Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/preactjs/enzyme-adapter-preact-pure
Preact adapter for the Enzyme UI testing library
https://github.com/preactjs/enzyme-adapter-preact-pure
The previous logic for mapping keys and refs on DOM elements and
components did not work for eit...
This function is not Preact version-specific, so it doesn't belong in
the {preact, preact10}-rst...
Enable the `noUnusedLocals` TS option and fix resulting errors.
In the case of `PreactAdapter#o...
5818b363b789e82beb7e251d685219aca353b025 authored almost 6 years ago by Robert Knight <[email protected]>ac99bb5d6e8e49eae53538366f4d5f05aaf42eba authored almost 6 years ago by Robert Knight <[email protected]>
This will be useful for running the tests against different versions of
Preact on CI, as well as...
- Use `render` function from src/compat.ts for compatibility with
Preact stable and Preact 1...
Support compiling the library against the stable version of Preact, but
add type extensions so t...
ed851170036ac579962e9e2acada21917b94ae92 authored almost 6 years ago by Robert Knight <[email protected]>
Preact 10 is a new implementation of Preact with re-written internals.
It differs from Preact "c...
Fix issues where falsey numbers (`0`) or strings ('') could produce
incorrect RST nodes.
`getNode()` always produces a fresh RST node in case the component
updated since the initial ren...
2b477e2f547f2bbd6652f5ba06eb58f50de63961 authored almost 6 years ago by Robert Knight <[email protected]>
aa69253c7061f504d55809d379d42d26ec7c8f26 authored almost 6 years ago by Robert Knight <[email protected]>
The wrapper calls `someArray.map(adapter.nodeToElement)`, which loses
the `this` receiver when `...
When a render function returned a string, the conversion of the rendered
tree to RST nodes incor...
The `wrapper.simulate` example [1] in the Enzyme docs did not work with
Preact because the inter...
f441b18854f472bb946312e42a1caa2624616427 authored almost 6 years ago by Robert Knight <[email protected]>
Enzyme's class selectors assume that class names are stored in the
`className` prop of RST nodes...
2e6cc8bcc4f5f7f5706768e4f2471944a96ae5c9 authored almost 6 years ago by Robert Knight <[email protected]>
596041894874b7a28a72bc6ede8acd3b5a5bf920 authored almost 6 years ago by Robert Knight <[email protected]>
246897b9f2e47a047f40378babc6714aac5e6678 authored almost 6 years ago by Robert Knight <[email protected]>
I've had a chance to test this out in a real app now and I'm more confident that the approach is...
267b424f635025c4eca50b343fa3c94f0463df75 authored almost 6 years ago by Robert Knight <[email protected]>DOM events can only be dispatched at DOM nodes.
a61445f87260a5bf5b43b1973509532b3feb5f2a authored almost 6 years ago by Robert Knight <[email protected]>
This facilitates more direct testing of the DOM node => RST node
conversion functionality.
e7912f9a4027dd3b741bf5ff751c57ca153e48ff authored almost 6 years ago by Robert Knight <[email protected]>
1a2734f492be772d738f0ab7f9a685b9098cf4fb authored almost 6 years ago by Robert Knight <[email protected]>
2cee45894eb9e0c25089928264c15d5d22778962 authored almost 6 years ago by Robert Knight <[email protected]>
9baeb7bf10986209befc656e96078b504049e803 authored almost 6 years ago by Robert Knight <[email protected]>
03b5b83eb9475464f4ee84458d06b502ddfaf3d7 authored almost 6 years ago by Robert Knight <[email protected]>
4e3ae3f7162fe814cea88480d179b8d1c5f30ba9 authored almost 6 years ago by Robert Knight <[email protected]>
This enables the package to be used when tests are run in an older
browser or Node version.
0c8e68403e946bc5b4021df133439e814fe8c7cc authored almost 6 years ago by Robert Knight <[email protected]>
As well as a peer dependency at runtime, enzyme also needs to be
installed as a dev dependency.
8523e712ba28074c97e48167a68cdb5d16df4229 authored almost 6 years ago by Robert Knight <[email protected]>
- Invoke `componentWillUnmount` lifecycle method when component is
unmounted by rendering a ...
a42a3467258ecc65191d929adae881a50789d3ad authored almost 6 years ago by Robert Knight <[email protected]>
Set expectations appropriately in case anyone tries to use it.
e5b01cc9230f630f60e0da1024c14e171316e175 authored almost 6 years ago by Robert Knight <[email protected]>56761d37084b34ee1093487cba45524e77fbedcf authored almost 6 years ago by Robert Knight <[email protected]>
- Update the package name to match the README
- Only include compiled source files and type de...
The exported adapter extends the `EnzymeAdapter` base class from enzyme,
so enzyme is a runtime,...
Implement static rendering using preact-render-to-string.
This also enables the use of HTML ren...
711df06e499bbb61152f7c5405c88620118e94eb authored almost 6 years ago by Robert Knight <[email protected]>
Preact does not directly support shallow rendering. Implement it in the
adapter by adding a VNod...
This was missing from a previous commit by mistake.
590f82f93aadfdea600e4873d924e10d4f6a20c2 authored almost 6 years ago by Robert Knight <[email protected]>1ed80812d2f1fb72f110fec89f4b28649f435f4e authored almost 6 years ago by Robert Knight <[email protected]>