Does Jest support ES6 import/export?
问题 If I use import/export from ES6 then all my jest tests fail with error: Unexpected reserved word I convert my object under test to use old school IIFY syntax and suddenly my tests pass. Or, take an even simpler test case: var Validation = require('../src/components/validation/validation');//PASS //import * as Validation from '../src/components/validation/validation'//FAIL Same error. Obviously there's a problem with import/export here. It's not practical for me to rewrite my code using ES5