File tree 4 files changed +14
-6
lines changed
4 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ module.exports = function(config) {
20
20
basePath : '' ,
21
21
browsers : [ 'ChromeHeadless' ] ,
22
22
files : [ 'test/loadTests.js' ] ,
23
- port : 8080 ,
24
23
captureTimeout : 60000 ,
25
24
frameworks : [ 'mocha' , 'chai' ] ,
26
25
client : {
Original file line number Diff line number Diff line change 17
17
"serve:dist" : " node server.js --env=dist" ,
18
18
"start" : " node server.js --env=dev" ,
19
19
"test" : " cross-env NODE_ENV=test karma start" ,
20
+ "test:debug" : " cross-env NODE_ENV=test karma start --no-single-run --browsers Chrome" ,
20
21
"test:watch" : " cross-env NODE_ENV=test karma start --no-colors --no-single-run" ,
21
22
"heroku-postbuild" : " npm run dist"
22
23
},
Original file line number Diff line number Diff line change 23
23
},
24
24
{
25
25
"cmd" : [
26
- " npm.cmd" ,
27
- " run" ,
28
- " test:watch"
26
+ " node" ,
27
+ " node_modules/karma/bin/karma" ,
28
+ " start" ,
29
+ " --no-colors" ,
30
+ " --no-single-run"
29
31
],
32
+ "env" : {
33
+ "NODE_ENV" : " test"
34
+ },
30
35
"name" : " npm-run-test:watch" ,
31
36
"working_dir" : " ${project_path}"
32
37
},
Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ let Presentation = class extends AutoScale.autoScaleMixin(React.Component) {
148
148
)
149
149
}
150
150
}
151
+ if ( require . main === module ) {
152
+ // Render the main component into the dom
153
+ ReactDOM . render ( < Presentation /> , document . getElementById ( 'app' ) )
154
+ }
155
+ // for testing
151
156
export default Presentation
152
- // Render the main component into the dom
153
- ReactDOM . render ( < Presentation /> , document . getElementById ( 'app' ) )
You can’t perform that action at this time.
0 commit comments