Skip to content

Commit

Permalink
Revert "UX-373 Upgrade styled-components to 5.2 (#686)" (#688)
Browse files Browse the repository at this point in the history
This reverts commit b683fd4.
  • Loading branch information
jonambas committed Nov 16, 2020
1 parent b683fd4 commit 1da0d16
Show file tree
Hide file tree
Showing 100 changed files with 41,346 additions and 22,652 deletions.
5 changes: 1 addition & 4 deletions babel.config.js
Expand Up @@ -12,10 +12,7 @@ module.exports = {
'@babel/preset-react',
'react-app',
],
plugins: [
'@babel/plugin-proposal-class-properties',
['babel-plugin-styled-components', { ssr: true, displayName: false, namespace: 'sc-' }],
],
plugins: ['@babel/plugin-proposal-class-properties'],
},
production: {
presets: [['@babel/preset-env'], '@babel/preset-react', 'react-app'],
Expand Down
6 changes: 3 additions & 3 deletions config/jest/setup.js
Expand Up @@ -2,8 +2,8 @@
import './raf';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import * as matchers from './matchers';
import 'jest-styled-components';
import toJson from 'enzyme-to-json';
import * as matchers from './matchers'

// Provides enzyme assertions.
// See https://github.com/blainekasten/enzyme-matchers#assertions
Expand All @@ -14,7 +14,7 @@ expect.extend(matchers);
Enzyme.configure({ adapter: new Adapter() });

// Fail tests on any warning
console.error = message => {
console.error = (message) => {
throw new Error(message);
};

Expand Down
3 changes: 1 addition & 2 deletions jest.config.json
Expand Up @@ -30,7 +30,6 @@
"^react-native$": "react-native-web",
"\\.(css|scss)$": "identity-obj-proxy",
"@sparkpost/matchbox-icons(.*)": "<rootDir>/packages/matchbox-icons/src",
"@sparkpost/matchbox(.*)": "<rootDir>/packages/matchbox/src",
"^styled-components": "<rootDir>/node_modules/styled-components"
"@sparkpost/matchbox(.*)": "<rootDir>/packages/matchbox/src"
}
}

0 comments on commit 1da0d16

Please sign in to comment.