Stories in ready at Waffle.io:
See Airbnb React/JSX Style Guide.
See ThoughtBot's Style Guide and Best Practices Guide for other styles.
We have Guard::RSpec set up. To run from command-line: guard. Then, hit enter/return to run tests. To "focus" your testing, such that only certains tests are run, set :focus metadata to true. Eg:
RSpec.describe 'User authentication', focus: false do
scenario 'user signs up', focus: true doNow, the 'user signs up' scenario will run. Note that if no focus is set to true, then all tests will run. If no focus metadata is present, Guard::RSpec defaults it to false.
See npm scripts in package.json for client testing scripts.
To sourcemap in client testing, add 'sourcemap' to preprocessors in karma.conf.js. Eg:
preprocessors: {
'./spec/javascripts/unit/**/*_test.js': ['webpack', 'sourcemap']
},