If you are already using jest-cli , just add babel-jest and it will automatically compile JavaScript code using babel. yarn add --dev babel-jest babel-core.
確定! 回上一頁