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

jest実行時のwarningを解消する #288

Closed
3 of 5 tasks
kaekasui opened this issue Apr 12, 2017 · 8 comments
Closed
3 of 5 tasks

jest実行時のwarningを解消する #288

kaekasui opened this issue Apr 12, 2017 · 8 comments
Milestone

Comments

@kaekasui
Copy link
Contributor

kaekasui commented Apr 12, 2017

したいこと

以下のwarningを解消したい

  • Warning: ReactTestUtils has been moved to react-dom/test-utils. Update references to remove this warning.
  • Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.
  • Warning: RouterContext: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
  • Warning: Shallow renderer has been moved to react-test-renderer/shallow. Update references to remove this warning.
  • Warning: Uncontrolled(Dropdown): React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
@kaekasui kaekasui added this to the v1.0.0 milestone Apr 12, 2017
@kaekasui
Copy link
Contributor Author

383行
jest warnings.txt

@kaekasui
Copy link
Contributor Author

#292

341行
341_jest_result.txt

@kaekasui kaekasui modified the milestones: v1.1.0, v1.0.0 Apr 15, 2017
@kaekasui
Copy link
Contributor Author

prop-typesのnpmを使うにあたり、react-routerのアップデートが必要かもしれない

@kaekasui
Copy link
Contributor Author

#295 にて352行

352-jest-warnings.txt

@kaekasui
Copy link
Contributor Author

kaekasui commented May 5, 2017

https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html

にて、

// Before (15.4 and below)
import { createRenderer } from 'react-addons-test-utils';

// After (15.5)
import { createRenderer } from 'react-test-renderer/shallow';

@kaekasui
Copy link
Contributor Author

kaekasui commented May 5, 2017

npm install react-test-renderer --save-dev

@kaekasui
Copy link
Contributor Author

kaekasui commented May 5, 2017

324行
jest-warnings.txt

@kaekasui
Copy link
Contributor Author

kaekasui commented Jun 1, 2017

capybaraがあるのでjestのテストをすべて削除しました

なお、javascriptのエラーは解消済みです。

@kaekasui kaekasui closed this as completed Jun 1, 2017
@kaekasui kaekasui modified the milestones: v1.0.0, v1.1.0 Jun 28, 2017
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

No branches or pull requests

1 participant