-
Notifications
You must be signed in to change notification settings - Fork 231
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: testing-library/react-hooks-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Could not load branches
Nothing to show
Loading
...
head repository: figma/react-hooks-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Could not load branches
Nothing to show
Loading
- 2 commits
- 9 files changed
- 1 contributor
Commits on Jun 25, 2021
-
Make changes to support
figbuild
The built version of this library that is downloaded when you run `npm install @testing-library/react-hooks` contains a few features that are not supported by `figbuild`. This forked version makes the following changes: - Output code that `figbuild` is set up to process. This was accomplished by adding a `.browserslistrc` file that lists IE 11 as a supported browser. While we don't actually support IE 11, this does mean the build won't try to use any fancy new language features. - Build with the `--bundle` option. This causes the build script to use Rollup to generate a single script file, instead of separate ES6 modules. This is also required to make the build script care about the `.browserslistrc` file. - Update the `main` and `types` fields of `package.json`. The `--bundle` option places the built file in a different location, under `dist` and with a new filename. - Update `tsconfig.json` to use an `ES5` target. I'm not sure if this does anything, since we're using Babel to build, not Typescript. But whatever, it can't hurt. - Remove "smart" dynamic `require` logic to [choose a renderer](https://react-hooks-testing-library.com/installation#renderer). `figbuild` does not support dynamic `require` statements. I also deleted tests for this logic. - Remove submodules structure. Since we're no longer doing dynamic requires, we also don't need to output `@testing-library/react-hooks/dom` and similar directories. If and when we move off of `figbuild`, we may be able to un-fork this library.
peterkhayes committedJun 25, 2021
Commits on Jan 10, 2022
-
peterkhayes committed
Jan 10, 2022
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...main