Skip to content

Commit

Permalink
add jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
skedwards88 committed Oct 26, 2023
1 parent 18c2727 commit 7139e26
Show file tree
Hide file tree
Showing 4 changed files with 15,948 additions and 9,620 deletions.
18 changes: 18 additions & 0 deletions babel.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "current"
},
},
],
"@babel/preset-react",
],
plugins: [
// required since @skedwards88/word_lists uses
// the import ... assert { type: "json" } syntax
"@babel/plugin-syntax-import-assertions"
]
};
7 changes: 7 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
transform: {
"^.+\\.[jt]sx?$": "babel-jest",
},
// ignore all node modules except @skedwards88/word_lists and @skedwards88/word_logic
transformIgnorePatterns: ['/node_modules/(?!@skedwards88/word_lists|@skedwards88/word_logic)'],
};
Loading

0 comments on commit 7139e26

Please sign in to comment.