Merge branch 'format-suggestion-summary' into 'main'
[ProtonMail-WebClient.git] / applications / account / jest.transform.js
blobc2c739e3726c3cac44a6cfeb95fe8fc01fce9c01
1 // Custom Jest transform implementation that injects test-specific babel presets.
2 module.exports = require('babel-jest').default.createTransformer({
3     presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-typescript'],
4     plugins: [
5         '@babel/plugin-proposal-object-rest-spread',
6         '@babel/plugin-transform-runtime',
7         '@babel/plugin-proposal-optional-chaining',
8         'transform-class-properties',
9         'transform-require-context',
10     ],
11 });