1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-23 01:30:01 +01:00
blog/jest/jest-preprocess.js

8 lines
191 B
JavaScript
Raw Normal View History

2019-10-02 13:35:50 +02:00
const { createTransformer } = require('babel-jest')
2019-05-02 21:11:52 +02:00
const babelOptions = {
2019-10-02 13:35:50 +02:00
presets: ['babel-preset-gatsby', '@babel/preset-typescript']
2019-05-02 21:11:52 +02:00
}
2019-10-02 13:35:50 +02:00
module.exports = createTransformer(babelOptions)