Skip to content

Commit

Permalink
fix jest babel resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Jan 12, 2022
1 parent dd9ea5b commit 19ca39f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions jest-transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ const babelJest = require(`babel-jest`)

module.exports = babelJest.default.createTransformer({
presets: [`babel-preset-gatsby-package`],
babelrcRoots: [
// Keep the root as a root
`.`,

// Also consider monorepo packages "root" and load their .babelrc files.
`./packages/*`,
],
})
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
console.log('hi there');
module.exports = {
"presets": [["babel-preset-gatsby-package"]],
"plugins": ["babel-plugin-replace-ts-export-assignment"]
}

0 comments on commit 19ca39f

Please sign in to comment.