Skip to content

Commit

Permalink
BREAKING CHANGE: Migrate to Jest and Webpack to be more compatible wi…
Browse files Browse the repository at this point in the history
…th Lit 3 (#118)

* Bump react-valence-ui-iframe

* Jest

* Webpack

* Remove deprecated react-addons-test-utils
  • Loading branch information
ataromoku authored Jul 4, 2024
1 parent 906f332 commit 0c6d037
Show file tree
Hide file tree
Showing 23 changed files with 10,717 additions and 6,984 deletions.
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
},
"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

0 comments on commit 0c6d037

Please sign in to comment.