rubyforgood / coral

An upcoming project for Ruby for Good
MIT License
13 stars 11 forks source link

Setup JavaScript testing #22

Closed nihonjinrxs closed 4 years ago

nihonjinrxs commented 4 years ago

Resolves #21

Description

This PR sets up JavaScript testing integrated with Rails, using the teaspoon and teaspoon-mocha gems. If you're running bundle exec rails s, you can go to localhost:3000/teaspoon to see the JavaScript test report.

Tests use mocha/chai, and are located in spec/javascript, although the matcher will also look for files suffixed with _spec and _test in the app/assets and app/javascript folders if you prefer co-locating tests with code.

Tests are running with Selenium Chromedriver using headless option.

Type of change

How Has This Been Tested?

Ran some tests!!!

LizPrescott commented 4 years ago

Hi hi. Can you resolve the conflict pls?