akiran / react-test-examples

Basic examples for testing react components
4 stars 0 forks source link

Run react tests with gui browsers #2

Open ghost opened 9 years ago

ghost commented 9 years ago

Can the tests in this repository be run with chrome (or) firefox... I tried changing browers in karma.config.js as, browsers: ['chrome'], It throws error as,

WARN [launcher]: Can not load "chrome", it is not registered!
  Perhaps you are missing some plugin?

Now i added plugins property to karma.config.js as, plugins: [ 'karma-chrome-launcher' ]

It gives new error as,

/home/sk/ws/react/react-test-examples/node_modules/karma/node_modules/di/lib/injector.js:9
      throw error('No provider for "' + name + '"!');
            ^
Error: No provider for "framework:jasmine"! (Resolving: framework:jasmine)
akiran commented 9 years ago

I think you needn't add plugins in config . it will be automatically interpreted.

But, You have install those plugin using npm