Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING CHANGE: Migrate to Jest and Webpack to be more compatible with Lit 3 #118

Merged
merged 18 commits into from
Jul 4, 2024
Merged
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"ecmaVersion": 2018
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would we want the latest version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, the last version this code works with is the 2018

},
"rules": {
"react/jsx-uses-react": 1,
Expand Down
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
presets: [
"@babel/preset-env", "@babel/preset-react"
],
plugins: ['babel-plugin-rewire']
};
14 changes: 14 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
testTimeout: 30000,
testEnvironment: "jsdom",
transform: {
'^.+\\.js$': 'babel-jest',
},
transformIgnorePatterns: [
"node_modules/(?!(\@?lit|lit-html|lit-element|sinon|react-valence-ui-iframe|react-frau-intl)/)"
],
testPathIgnorePatterns: [
"/__tests__/utils/"
],
moduleFileExtensions: ['js', 'jsx', 'json', 'node']
};
47 changes: 0 additions & 47 deletions karma.conf.js

This file was deleted.

Loading