Skip to content
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

Expose 'react-addons-test-utils' for spec testing external plugins #1925

Merged
merged 1 commit into from Apr 13, 2016

Conversation

mbilker
Copy link
Contributor

@mbilker mbilker commented Apr 10, 2016

In Cypher, I use ReactTestUtils and was exposed as React.addons.ReactTestUtils in React 0.13, but no longer in React 0.14. To run spec tests properly, Cypher needs ReactTestUtils exposed.

This PR exposes it through nylas-exports, but it has the side-effect of exposing it while not in dev mode. If there is a better way to expose this during spec mode, please feel free to comment.

mbilker added a commit to mbilker/cypher that referenced this pull request Apr 10, 2016
@bengotow
Copy link
Contributor

Looks good to me—thanks!

@bengotow bengotow merged commit cf3422d into nylas:master Apr 13, 2016
@mbilker mbilker deleted the expose-react-test-utils branch April 13, 2016 04:11
mbilker added a commit to mbilker/N1 that referenced this pull request Apr 13, 2016
* github/master:
  bump(electron): 0.36.7 => 0.37.5
  Open links in background when ⌘ key is pressed (nylas#1637)
  fix(imports): switch to Electron's require('electron') (nylas#1907)
  fix(plugins): expose react-addons-test-utils for spec testing (nylas#1925)
  perf(require): Don't assume `require` is free, cache deferred imports
  bump(react) 0.14.7 => 15.0.1
  fix(composer-emoji): Fix calculation for category positioning
  fix(emoji): Improve variable names / diff feedback
  changelog: 0.4.25 release notes
  fix(emoji): Don't allow emoji images to be dragged into attachments
  fix(emoji): Re-use img tag to avoid running out of file descriptors
  fix(metadata): Add missing joinOnField declaration, assertion
  fix(account-store): Allow updateAccount in all windows
  shrink(emoji): TinyPNG emoji, convert to 32x32
  lint(utils): Fix linter issue
  fix(composer-emoji): Switch to characters to PNGs (nylas#1898)
  bump(version): 0.4.25
  perf(db): Use same subselect for "related emails" queries
mbilker added a commit to mbilker/N1 that referenced this pull request Apr 13, 2016
* 'master' of github.com:mbilker/N1: (48 commits)
  lint(composer-emoji): eslint
  bump(electron): 0.36.7 => 0.37.5
  Open links in background when ⌘ key is pressed (nylas#1637)
  fix(imports): switch to Electron's require('electron') (nylas#1907)
  fix(plugins): expose react-addons-test-utils for spec testing (nylas#1925)
  perf(require): Don't assume `require` is free, cache deferred imports
  bump(react) 0.14.7 => 15.0.1
  fix(composer-emoji): Fix calculation for category positioning
  fix(emoji): Improve variable names / diff feedback
  changelog: 0.4.25 release notes
  fix(emoji): Don't allow emoji images to be dragged into attachments
  fix(emoji): Re-use img tag to avoid running out of file descriptors
  fix(metadata): Add missing joinOnField declaration, assertion
  fix(account-store): Allow updateAccount in all windows
  shrink(emoji): TinyPNG emoji, convert to 32x32
  lint(utils): Fix linter issue
  fix(composer-emoji): Switch to characters to PNGs (nylas#1898)
  bump(version): 0.4.25
  perf(db): Use same subselect for "related emails" queries
  feat(scheduler): add an event preview when sending a meeting request
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants