Skip to content

Commit

Permalink
test(create-plugin): add esmodule ignore patterns for tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
jackw committed Jan 9, 2024
1 parent 1eb81ea commit ea59db2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/create-plugin/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const sharedConfig = require('../../jest.config.base');
const esModules = ['change-case', 'title-case'].join('|');

module.exports = {
...sharedConfig,
modulePathIgnorePatterns: ['<rootDir>/templates/'],
transformIgnorePatterns: [`/node_modules/(?!${esModules})`],
};

0 comments on commit ea59db2

Please sign in to comment.