Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Permalink

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
Choose a base ref
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
Choose a head ref
Loading
  • 2 commits
  • 9 files changed
  • 1 contributor

Commits on Jun 25, 2021

  1. 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 committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    6d132bd View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2022

  1. Configuration menu
    Copy the full SHA
    4dd2753 View commit details
    Browse the repository at this point in the history
Loading

AltStyle によって変換されたページ (->オリジナル) /