Skip to content

Commit

Permalink
Dev: Improve config for runing tests on ESM build
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Apr 4, 2020
1 parent 83616cd commit 6bd2751
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ test
coverage

.DS_Store
.babelrc.js
.editorconfig
.eslintignore
.eslintrc.js
.gitattributes
.travis.yml
babel.config.js
jest.config.js
rollup.config.js
File renamed without changes.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ module.exports = {
// Resolve `import from 'is-it-type'` to src or build, depending on env variable
moduleNameMapper: {
'^is-it-type$': resolvePath()
}
},
// Transform ESM helpers to CJS
transformIgnorePatterns: ['<rootDir>/node_modules/(?!@babel/runtime/helpers/esm/)']
};

function resolvePath() {
Expand Down
18 changes: 0 additions & 18 deletions test/.babelrc.js

This file was deleted.

0 comments on commit 6bd2751

Please sign in to comment.