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

Support keys and refs on DOM elements and components

The previous logic for mapping keys and refs on DOM elements and
components did not work for eit...

e89980409063b859a3621ad501d3d6cfc8133e97 authored almost 6 years ago by Robert Knight <[email protected]>
Move duplicated `getDisplayName` utility function into `src/util`

This function is not Preact version-specific, so it doesn't belong in
the {preact, preact10}-rst...

c47786cc9ec4db64d9711449551e08e3641cad35 authored almost 6 years ago by Robert Knight <[email protected]>
Clean up unused imports and local variables

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]>
Update change log

ac99bb5d6e8e49eae53538366f4d5f05aaf42eba authored almost 6 years ago by Robert Knight <[email protected]>
Add support for running tests against a custom build of Preact

This will be useful for running the tests against different versions of
Preact on CI, as well as...

9e3603120fb769f0c1bd5a240b9934d016ea7bcc authored almost 6 years ago by Robert Knight <[email protected]>
Fix Preact < v10 compatibility

- Use `render` function from src/compat.ts for compatibility with
Preact stable and Preact 1...

877cc828ff1f9fb68b19f049c8ed587b5a82d822 authored almost 6 years ago by Robert Knight <[email protected]>
Support compiling against Preact 8/9 but running against Preact 10

Support compiling the library against the stable version of Preact, but
add type extensions so t...

8b27e46085d39cb8b03ba9b9c727a3d2742e5da6 authored almost 6 years ago by Robert Knight <[email protected]>
Remove unused `createRef` imports

ed851170036ac579962e9e2acada21917b94ae92 authored almost 6 years ago by Robert Knight <[email protected]>
Support Preact 10 (aka. "Preact X", "ceviche")

Preact 10 is a new implementation of Preact with re-written internals.
It differs from Preact "c...

177d6a6cbc2521621b15c64664d91f8801acccf1 authored almost 6 years ago by Robert Knight <[email protected]>
Fix bugs caused by lazy null-ness testing

Fix issues where falsey numbers (`0`) or strings ('') could produce
incorrect RST nodes.

93ca1b7f0170e8fc819a17be5d4ae7687a3898a7 authored almost 6 years ago by Robert Knight <[email protected]>
Remove unnecessary `_rootNode` property from `MountRenderer`

`getNode()` always produces a fresh RST node in case the component
updated since the initial ren...

2652818b5c225e410ec0eba0b9f1226b336cd071 authored almost 6 years ago by Robert Knight <[email protected]>
v1.2.0

2b477e2f547f2bbd6652f5ba06eb58f50de63961 authored almost 6 years ago by Robert Knight <[email protected]>
Update changelog

aa69253c7061f504d55809d379d42d26ec7c8f26 authored almost 6 years ago by Robert Knight <[email protected]>
Work around a bug in Enzyme's ReactWrapper when calling `get(0)`

The wrapper calls `someArray.map(adapter.nodeToElement)`, which loses
the `this` receiver when `...

9c28989e3b085de8a880f371ad72acc39489c9e4 authored almost 6 years ago by Robert Knight <[email protected]>
Handle components that render strings correctly

When a render function returned a string, the conversion of the rendered
tree to RST nodes incor...

e87fca6c971c5592169cf35439355b37a74f84a3 authored almost 6 years ago by Robert Knight <[email protected]>
Make `setState` calls apply synchronously on fully-rendered components

The `wrapper.simulate` example [1] in the Enzyme docs did not work with
Preact because the inter...

3bb150367e47df718fb6fb60dc98be1440d338f0 authored almost 6 years ago by Robert Knight <[email protected]>
v1.1.0

f441b18854f472bb946312e42a1caa2624616427 authored almost 6 years ago by Robert Knight <[email protected]>
Support Enzyme class selectors

Enzyme's class selectors assume that class names are stored in the
`className` prop of RST nodes...

4e090ffdc052412c23787a2ab5c6dfce278fb648 authored almost 6 years ago by Robert Knight <[email protected]>
v1.0.0

2e6cc8bcc4f5f7f5706768e4f2471944a96ae5c9 authored almost 6 years ago by Robert Knight <[email protected]>
Merge remote-tracking branch 'origin/master'

596041894874b7a28a72bc6ede8acd3b5a5bf920 authored almost 6 years ago by Robert Knight <[email protected]>
v0.5.0

246897b9f2e47a047f40378babc6714aac5e6678 authored almost 6 years ago by Robert Knight <[email protected]>
Remove "early stage package" warning from README

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]>
Throw an error if trying to fire an event at a non-host node

DOM events can only be dispatched at DOM nodes.

a61445f87260a5bf5b43b1973509532b3feb5f2a authored almost 6 years ago by Robert Knight <[email protected]>
Extract DOM node => RST node conversion functions into separate module

This facilitates more direct testing of the DOM node => RST node
conversion functionality.

1f75c0370fd01e849dc56b61c07f7d086233212c authored almost 6 years ago by Robert Knight <[email protected]>
Add additional tests for shallow rendering and VNode extensions

e7912f9a4027dd3b741bf5ff751c57ca153e48ff authored almost 6 years ago by Robert Knight <[email protected]>
v0.4.0

1a2734f492be772d738f0ab7f9a685b9098cf4fb authored almost 6 years ago by Robert Knight <[email protected]>
Support passing event properties when simulating an event

2cee45894eb9e0c25089928264c15d5d22778962 authored almost 6 years ago by Robert Knight <[email protected]>
Add Travis badge to README

9baeb7bf10986209befc656e96078b504049e803 authored almost 6 years ago by Robert Knight <[email protected]>
v0.3.0

03b5b83eb9475464f4ee84458d06b502ddfaf3d7 authored almost 6 years ago by Robert Knight <[email protected]>
v0.1.1

4e3ae3f7162fe814cea88480d179b8d1c5f30ba9 authored almost 6 years ago by Robert Knight <[email protected]>
Target ES5 in generated code

This enables the package to be used when tests are run in an older
browser or Node version.

07a476b2ea8315633e6282d867b6378809f0de98 authored almost 6 years ago by Robert Knight <[email protected]>
v0.2.0

0c8e68403e946bc5b4021df133439e814fe8c7cc authored almost 6 years ago by Robert Knight <[email protected]>
Re-add enzyme as a dev dependency

As well as a peer dependency at runtime, enzyme also needs to be
installed as a dev dependency.

d1249d3ca07579c96fe1bc34a22443751cb2d6ec authored almost 6 years ago by Robert Knight <[email protected]>
Add minimal Travis config

8523e712ba28074c97e48167a68cdb5d16df4229 authored almost 6 years ago by Robert Knight <[email protected]>
Improve lifecycle method handling in shallow and full rendering

- Invoke `componentWillUnmount` lifecycle method when component is
unmounted by rendering a ...

a92782743af393d25bc146b17da2ac9b2cec2c55 authored almost 6 years ago by Robert Knight <[email protected]>
Add a prepublish script to build package before publication

a42a3467258ecc65191d929adae881a50789d3ad authored almost 6 years ago by Robert Knight <[email protected]>
Add a note about the new-ness of this package

Set expectations appropriately in case anyone tries to use it.

e5b01cc9230f630f60e0da1024c14e171316e175 authored almost 6 years ago by Robert Knight <[email protected]>
Update the README with details of shallow rendering support

56761d37084b34ee1093487cba45524e77fbedcf authored almost 6 years ago by Robert Knight <[email protected]>
Fix package name and included files

- Update the package name to match the README
- Only include compiled source files and type de...

0f2c08687dcb9fdbdf2503b510ca5af211375123 authored almost 6 years ago by Robert Knight <[email protected]>
Convert enzyme from a dev to a peer dependency

The exported adapter extends the `EnzymeAdapter` base class from enzyme,
so enzyme is a runtime,...

7d32200e8389281dd0f6a644aaa5f19e89033fb3 authored almost 6 years ago by Robert Knight <[email protected]>
Implement static rendering

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]>
Implement shallow rendering

Preact does not directly support shallow rendering. Implement it in the
adapter by adding a VNod...

73fe9ac675c1010e9ab96e120446d6c1c13d61f5 authored almost 6 years ago by Robert Knight <[email protected]>
Commit Prettier config

This was missing from a previous commit by mistake.

590f82f93aadfdea600e4873d924e10d4f6a20c2 authored almost 6 years ago by Robert Knight <[email protected]>
Initial commit

1ed80812d2f1fb72f110fec89f4b28649f435f4e authored almost 6 years ago by Robert Knight <[email protected]>