Skip to content

Commit

Permalink
Fix moduleNameMapper configuration (#5593)
Browse files Browse the repository at this point in the history
* Fix moduleNameMapper configuration

* Change file
  • Loading branch information
cliffkoh authored and dzearing committed Jul 17, 2018
1 parent d29def6 commit 52f7a77
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 6.0_RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ your `jest.config.js`:

```js
moduleNameMapper: {
'office-ui-fabric-react/lib/': 'office-ui-fabric-react/lib-commonjs/'
'office-ui-fabric-react/lib/(.*)$': 'office-ui-fabric-react/lib-commonjs/$1'
},
```

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"packageName": "@uifabric/charting",
"type": "none"
}
],
"packageName": "@uifabric/charting",
"email": "cliff.koh@microsoft.com"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"comment": "",
"packageName": "@uifabric/experiments",
"type": "none"
}
],
"packageName": "@uifabric/experiments",
"email": "cliff.koh@microsoft.com"
}
2 changes: 1 addition & 1 deletion packages/charting/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = createConfig({
setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))],

moduleNameMapper: {
'office-ui-fabric-react/lib/': 'office-ui-fabric-react/lib-commonjs/'
'office-ui-fabric-react/lib/(.*)$': 'office-ui-fabric-react/lib-commonjs/$1'
},

snapshotSerializers: [path.resolve(__dirname, './node_modules/@uifabric/jest-serializer-merge-styles')]
Expand Down
2 changes: 1 addition & 1 deletion packages/experiments/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const config = createConfig({
setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))],

moduleNameMapper: {
'office-ui-fabric-react/lib/': 'office-ui-fabric-react/lib-commonjs/',
'office-ui-fabric-react/lib/(.*)$': 'office-ui-fabric-react/lib-commonjs/$1',
'@uifabric/experiments/lib/(.*)': '<rootDir>/src/$1'
},

Expand Down

0 comments on commit 52f7a77

Please sign in to comment.