Skip to content

Commit

Permalink
Add jest
Browse files Browse the repository at this point in the history
  • Loading branch information
bplok20010 committed Apr 7, 2020
1 parent d5517bd commit 61acf8a
Show file tree
Hide file tree
Showing 5 changed files with 9,341 additions and 3,067 deletions.
15 changes: 15 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = api => {
const isTest = api.env("test");
if (!isTest) return {};

return {
presets: [
[
"babel-preset-packez",
{
modules: "cjs",
},
],
],
};
};
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
transform: {
"^.+\\.[t|j]sx?$": "babel-jest",
},
};
Loading

0 comments on commit 61acf8a

Please sign in to comment.