require('babel-jest');

module.exports = {
  roots: ['js'],
  moduleFileExtensions: ['js', 'jsx'],
  transform: {
    '\\.jsx?$': 'babel-jest',
  },
};

require('babel-jest');

module.exports = {
  testURL: 'http://localhost/',
  roots: ['js'],
  moduleFileExtensions: ['js', 'jsx'],
  transform: {
    '\\.jsx?$': 'babel-jest',
  },
};

Fix "localStorage is not available" error in test
Fix "localStorage is not available" error in test

https://stackoverflow.com/q/51554366
https://github.com/facebook/jest/issues/6766
