Re:Jest – Painless JavaScript Testing
by vjeux on Wednesday May 14, 2014 @03:29PM
(#7745760)
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 :)
[ Parent
| on HN ]
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.