-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
95 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
presets: [ | ||
["@babel/preset-env", { | ||
"useBuiltIns": "entry", | ||
}], | ||
[ | ||
"@babel/preset-react", | ||
{ | ||
//"pragma": "dom", // default pragma is React.createElement (only in classic runtime) | ||
//"pragmaFrag": "DomFrag", // default is React.Fragment (only in classic runtime) | ||
"throwIfNamespace": false, // defaults to true | ||
"runtime": "automatic" // defaults to classic | ||
// "importSource": "custom-jsx-library" // defaults to react (only in automatic runtime) | ||
} | ||
] | ||
], | ||
// sourceMaps: "inline", | ||
plugins: ['babel-plugin-rewire'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
setupFilesAfterEnv: [ | ||
|
||
], | ||
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'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters