Skip to content

Instantly share code, notes, and snippets.

# Install NPM dependencies:
npm install [email protected] [email protected] [email protected]
# Download Facebook's unminified SDK
wget https://connect.facebook.net/en_US/sdk/debug.js
# Run
node split-facebook-debug-js.js
@bregenspan
bregenspan / diveTo.js
Last active December 17, 2020 02:17
Recursively dive() to deeply-wrapped components via Enzyme
import merge from 'lodash/merge';
/**
* Given an Enzyme ShallowWrapper and component identifier, dives() down until the
* specified component is the root component.
*
* @param { Enzyme.ShallowWrapper } shallowWrapper - wrapper to dive into
* @param { string } name of component to dive for (should match constructor name).
* @param { object= } options to pass to dive()
*/

Keybase proof

I hereby claim:

  • I am bregenspan on github.
  • I am benregenspan (https://keybase.io/benregenspan) on keybase.
  • I have a public key ASBLpQ0uaOXi-hamZxrh7-wK1nxOTmxl1tZ-seoYYtZ4Rwo

To claim this, I am signing this object: