Skip to content

Commit

Permalink
chore(jest): update snapshots and jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylam committed Nov 13, 2023
1 parent c7de427 commit 013950f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/react/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2016, 2022
* Copyright IBM Corp. 2016, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -44,4 +44,7 @@ module.exports = {
],
moduleFileExtensions: ['js', 'json'],
snapshotSerializers: ['enzyme-to-json/serializer'],
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs',
},
};
5 changes: 4 additions & 1 deletion packages/services-store/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @license
*
* Copyright IBM Corp. 2020, 2022
* Copyright IBM Corp. 2020, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand All @@ -21,4 +21,7 @@ module.exports = {
'^.+\\.[jt]s$': '<rootDir>/config/jest/jsTransform.js',
},
transformIgnorePatterns: ['/node_modules/(?!@carbon/ibmdotcom-*)'],
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs',
},
};
5 changes: 4 additions & 1 deletion packages/utilities/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright IBM Corp. 2020
* Copyright IBM Corp. 2020, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
Expand Down Expand Up @@ -32,4 +32,7 @@ module.exports = {
],
moduleFileExtensions: ['js', 'json'],
snapshotSerializers: ['enzyme-to-json/serializer'],
moduleNameMapper: {
axios: 'axios/dist/node/axios.cjs',
},
};

0 comments on commit 013950f

Please sign in to comment.