エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
記事へのコメント1件
- 注目コメント
- 新着コメント
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
GitHub - pzavolinsky/react-unit: Lightweight unit test library for ReactJS
var React = require('react'); var createComponent = require('react-unit'); describe('MyComponent'... var React = require('react'); var createComponent = require('react-unit'); describe('MyComponent', () => { it('should echo the value', () => { var component = createComponent(<MyComponent value="hello, world!" />); var input = component.findByQuery('input')[0]; expect(input.props.value).toBe('hello, world!'); }); it('should trigger events', () => { var changedValue; function onChange(e) { changedV



2015/12/20 リンク