We're not using CoffeeScript inside of Facebook. But we are using many ES6 features that make JS look a lot like CoffeeScript such as classes, arrow functions, rest arguments, destructuring assignment ... I figured that CoffeeScript would be a good example to show that Jest supports languages that transpile to JS :)
Re:Jest – Painless JavaScript Testing
by skeeterbug on Wednesday May 14, 2014 @04:40PM
(#7746272)
Curious - What are you using to transpile your ES6? Traceur?
Internally we use jstransform (github.com/facebook/jstransform) because it allows us to plug in individual transforms more easily. It's also what React uses for it's jsx transformations.
jstransform also ships with a few es6 features out of the box (classes, arrow functions, etc -- and the number is growing!), but Traceur definitely has more.
Re:Jest – Painless JavaScript Testing
by jamesgpearce on Wednesday May 14, 2014 @05:14PM
(#7746487)
Actually our recent shortcuts-for-framer project happens to use CoffeeScript, but this is very much an outlier. https://github.com/facebook/shortcuts-for-framer
http://facebook.github.io/jest/docs/tutorial-coffeescript.ht...