Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
liyasthomas committed Aug 17, 2020
1 parent e68ad73 commit f57ac97
Show file tree
Hide file tree
Showing 3 changed files with 8,350 additions and 4,806 deletions.
21 changes: 21 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function isBabelLoader(caller) {
return caller && caller.name === "babel-loader"
}

module.exports = function (api) {
if (api.env("test") && !api.caller(isBabelLoader)) {
return {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current",
},
},
],
],
}
}
return {}
}
Loading

0 comments on commit f57ac97

Please sign in to comment.