I would like to run the following test with Jest. I have no babel-config or jest-config yet. How can I configure jest to use ES6 features like import/export?
index.js:
export const add = (a, b) => a + b;
index.test.js
import { add } from '.';
describe('add', () => {
it('adds a + b', () => {
expect(add(1, 2)).toBe(3);
});
});