File tree Expand file tree Collapse file tree 12 files changed +36
-22
lines changed
es6-babel-react-flux-karma Expand file tree Collapse file tree 12 files changed +36
-22
lines changed Original file line number Diff line number Diff line change 4141 "gulp-eslint" : " ^1.0.0" ,
4242 "gulp-if" : " ^2.0.0" ,
4343 "gulp-inject" : " ^3.0.0" ,
44- "gulp-jshint" : " ^1.11.2" ,
4544 "gulp-notify" : " ^2.2.0" ,
4645 "gulp-sourcemaps" : " ^1.5.2" ,
4746 "gulp-streamify" : " 1.0.0" ,
5857 "karma-sourcemap-loader" : " ^0.3.6" ,
5958 "karma-webpack" : " ^1.7.0" ,
6059 "phantomjs" : " ^1.9.17" ,
61- "react" : " ^0.13 .3" ,
60+ "react" : " ^0.14 .3" ,
6261 "ts-loader" : " ^0.6.0" ,
62+ "react-addons-test-utils" : " ^0.14.3" ,
63+ "react-dom" : " ^0.14.3" ,
64+ "ts-loader" : " ^0.7.1" ,
6365 "typescript" : " ^1.6.2" ,
6466 "webpack" : " ^1.12.2" ,
6567 "webpack-notifier" : " ^1.2.1"
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons ' ;
1+ import * as React from 'react' ;
22import GreetingStore from '../stores/GreetingStore' ;
33import * as GreetingActions from '../actions/GreetingActions' ;
44import GreetingState from '../types/GreetingState' ;
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons ' ;
1+ import * as React from 'react' ;
22import * as GreetingActions from '../actions/GreetingActions' ;
33
44interface Props {
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons ' ;
1+ import * as React from 'react' ;
22import * as GreetingActions from '../actions/GreetingActions' ;
33
44interface Props {
Original file line number Diff line number Diff line change 11import './dependencies' ;
2- import * as React from 'react/addons' ;
2+ import * as React from 'react' ;
3+ import * as ReactDOM from 'react-dom' ;
34import App from './components/App' ;
5+ const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
46
5- React . render ( < App /> , document . getElementById ( 'content' ) ) ;
7+ ReactDOM . render ( < App /> , document . getElementById ( 'content' ) ) ;
Original file line number Diff line number Diff line change 33 "filesGlob" : [
44 " ../typings/**/*.*.ts" ,
55 " !../typings/jasmine/jasmine.d.ts" ,
6+ " !../typings/react/react-addons-test-utils.d.ts" ,
67 " **/*.{ts,tsx}"
78 ],
89 "compilerOptions" : {
1617 "files" : [
1718 " ../typings/flux/flux.d.ts" ,
1819 " ../typings/node/node.d.ts" ,
20+ " ../typings/react/react-dom.d.ts" ,
1921 " ../typings/react/react.d.ts" ,
2022 " ../typings/tsd.d.ts" ,
2123 " actions/GreetingActions.ts" ,
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons' ;
1+ import * as React from 'react' ;
2+ import * as TestUtils from 'react-addons-test-utils' ;
23import App from '../../src/components/App' ;
34import WhoToGreet from '../../src/components/WhoToGreet' ;
45import Greeting from '../../src/components/Greeting' ;
56import GreetingStore from '../../src/stores/GreetingStore' ;
6-
7- const { TestUtils } = React . addons ;
7+ const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
88
99describe ( 'App' , ( ) => {
1010 it ( 'renders expected HTML' , ( ) => {
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons' ;
1+ import * as React from 'react' ;
2+ import * as TestUtils from 'react-addons-test-utils' ;
23import Greeting from '../../src/components/Greeting' ;
34import * as GreetingActions from '../../src/actions/GreetingActions' ;
4-
5- const { TestUtils } = React . addons ;
5+ const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
66
77describe ( 'Greeting' , ( ) => {
88 let handleSelectionChangeSpy : jasmine . Spy ;
Original file line number Diff line number Diff line change 1- import * as React from 'react/addons' ;
1+ import * as React from 'react' ;
2+ import * as TestUtils from 'react-addons-test-utils' ;
23import WhoToGreet from '../../src/components/WhoToGreet' ;
34import * as GreetingActions from '../../src/actions/GreetingActions' ;
4-
5- const { TestUtils } = React . addons ;
5+ const __react = React ; // only in place to prevent React being purged from dependencies as not used directly
66
77describe ( 'WhoToGreet' , ( ) => {
88 let handleSelectionChangeSpy : jasmine . Spy ;
Original file line number Diff line number Diff line change 2121 " ../typings/flux/flux.d.ts" ,
2222 " ../typings/jasmine/jasmine.d.ts" ,
2323 " ../typings/node/node.d.ts" ,
24+ " ../typings/react/react-addons-test-utils.d.ts" ,
25+ " ../typings/react/react-dom.d.ts" ,
2426 " ../typings/react/react.d.ts" ,
2527 " ../typings/tsd.d.ts"
2628 ],
You can’t perform that action at this time.
0 commit comments