jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Add ES6 extensions to normalize_js_extension. #339

Closed phyllisstein closed 9 years ago

phyllisstein commented 9 years ago

This super-insignificant tweak adds .es6 and .js.es6 to the preprocessors filtered out by the normalize_js_extension method. I'd like to come back to it at some point and see if it's at all feasible to futureproof it by extracting preprocessor extensions from the suite.matcher setting, but don't have the time just now.

jejacks0n commented 9 years ago

Let's just pull this out and put it in a configuration -- then you can add a wiki article about it if you'd like. I'll include es6 in the default value too. I'll merge this and then refactor to configuration.

Thanks!