Skip to content

Commit

Permalink
build: jest and babel configs update
Browse files Browse the repository at this point in the history
  • Loading branch information
YaraMatkova committed Aug 9, 2022
1 parent e51cd8b commit 0a93722
Show file tree
Hide file tree
Showing 6 changed files with 2,454 additions and 798 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@
"@babel/plugin-transform-flow-comments",
"@babel/plugin-transform-runtime"
],
"env": {
"test": {
"plugins": ["@babel/plugin-transform-modules-commonjs"]
}
},
"overrides": [
{
"test": ["./src/**/*.ts"],
"presets": [
"@babel/preset-typescript",
["@babel/preset-env", {
"targets": ["> 0.25%", "not dead"]
"targets": ">0.25%, not dead, ie 11"
}]
],
"plugins": [
Expand Down
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'jsdom',
testMatch: [
'<rootDir>/src/sdk/**/?(*.)(spec|test).{js,ts}'
],
transform: {
'^.+\\.(js|ts)$': 'babel-jest',
'^.+\\.js$': 'babel-jest',
},
coveragePathIgnorePatterns: [
'<rootDir>/node_modules/',
Expand Down
Loading

0 comments on commit 0a93722

Please sign in to comment.