Skip to content

Commit

Permalink
fix: remove data-testid in production
Browse files Browse the repository at this point in the history
  • Loading branch information
devharris7 committed Feb 22, 2021
1 parent a8be2d2 commit 27b46c8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ const presets = [
],
];

const env = {
production: {
plugins: ['babel-plugin-jsx-remove-data-test-id'],
},
development: {
plugins: ['babel-plugin-jsx-remove-data-test-id'],
},
test: {
plugins: [],
},
};

module.exports = {
presets,
plugins,
env,
};
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"babel-jest": "^26.0.1",
"babel-loader": "^8.0.6",
"babel-plugin-istanbul": "^5.2.0",
"babel-plugin-jsx-remove-data-test-id": "^3.0.0",
"bootstrap-sass": "^3.4.1",
"case-sensitive-paths-webpack-plugin": "^2.2.0",
"classnames": "^2.2.6",
Expand Down

0 comments on commit 27b46c8

Please sign in to comment.