-
Notifications
You must be signed in to change notification settings - Fork 37
Setup automatic releases #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@antsmartian I'm happy to make a PR for this - bunch of features that are here on Github but aren't published to NPM. |
@larrybotha Welcome. But almost all the latest codebase and its features are published to NPM. |
@antsmartian ye, there are a couple things missing like Will get on this in the coming days. |
awwww bup bup... I can't do this without being a collaborator on the repo owner, and access on npm :/ |
Looks like still not fixed |
@jseto Yes, feel free to raise a PR. (sorry I'm not finding enough time for this) |
To my understanding, it is not a matter of a PR since the GIT repository is correct. It is on the NPM side as @larrybotha said |
I've just replaced Looks like we can safely use |
@larrybotha what do you mean with "safely use @testing-libray going forward"? |
@fondberg there seems to be no need to rely on |
Sounds great! Have you seen https://github.com/kentcdodds/dom-testing-library-with-anything/blob/8938e627484ecd2640d1095f45da02c98c7d8669/preact.test.js? |
@fondberg Kent's using
Check out my notes here: In React they're unnecessary, but in Preact they seem necessary for now :) I haven't yet tinkered with Preact X, however. |
A note to anyone coming across this and having trouble with Because Preact X solution
// jest.config
// ...
moduleNameMapper: {
// ...
'^react-dom/test-utils$': 'preact/test-utils',
// ...
},
// ... Note: This is untested Preact 8.x.x solutionOne can add a configuration to // config/tests/react-dom-test-utils.js
/**
* export an empty object, i.e. `act` is undefined
*/
module.exports = {}; // jest.config
// ...
moduleNameMapper: {
// ...
'^react-dom/test-utils$': 'path/to/custom/react-dom-test-utils.js'),
// ...
},
// ... Confirmed this works with Preact 8.4.2. |
Closing issue since we migrated to the testing-library, releases are now automated via semantic-release. |
In the project, run:
Follow the prompts and you'll have automatic releases set up. See http://kcd.im/write-oss for more info.
The text was updated successfully, but these errors were encountered: