Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Merge fd0ae3e into a1c929b
Browse files Browse the repository at this point in the history
  • Loading branch information
tinkertrain committed Apr 24, 2019
2 parents a1c929b + fd0ae3e commit 6548700
Show file tree
Hide file tree
Showing 5 changed files with 23,131 additions and 32,179 deletions.
26 changes: 0 additions & 26 deletions .babelrc

This file was deleted.

55 changes: 55 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
module.exports =
process.env.NODE_ENV === 'test'
? {
presets: [
[
'@babel/preset-env',
{
targets: {
ie: '11',
edge: '16',
firefox: '60',
chrome: '65',
safari: '10',
node: '8',
},
loose: true,
},
],
'@babel/preset-flow',
'@babel/react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-transform-runtime',
'inline-svg',
'emotion',
],
}
: {
presets: [
[
'@babel/preset-env',
{
targets: {
ie: '11',
edge: '16',
firefox: '60',
chrome: '65',
safari: '10',
node: '8',
},
loose: true,
},
],
'@babel/preset-flow',
'@babel/react',
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-flow-strip-types',
'inline-svg',
'emotion',
],
}
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module.exports = {
'<rootDir>/config/polyfills.js',
'<rootDir>/config/jsdomPolyfills.js',
],
setupTestFrameworkScriptFile: '<rootDir>/config/jest/setupTests.js',
setupFilesAfterEnv: ['<rootDir>/config/jest/setupTests.js'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.test.(js|jsx|ts|tsx)',
'<rootDir>/src/**/?(*.)(spec|test).js?(x)',
Expand Down
Loading

0 comments on commit 6548700

Please sign in to comment.