Skip to content

Commit

Permalink
test(utils): Report - ignore version
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Feb 29, 2020
1 parent 287c801 commit 15b1fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,6 @@ Object {
},
],
},
"version": "2.0.0-beta.7",
}
`;

Expand Down Expand Up @@ -1366,6 +1365,5 @@ Object {
},
],
},
"version": "2.0.0-beta.7",
}
`;
5 changes: 3 additions & 2 deletions packages/utils/src/report/__tests__/create.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { omit } from 'lodash';
import { advanceTo } from 'jest-date-mock';

import webpackStatsCurrentExtracted from '../../../__fixtures__/webpack-stats-1.extracted';
Expand All @@ -13,7 +14,7 @@ describe('report / createReport', () => {
{ webpack: webpackStatsCurrentExtracted },
]));

expect(actual).toMatchSnapshot();
expect(omit(actual, ['version'])).toMatchSnapshot();
});

test('multiple sources', () => {
Expand All @@ -22,6 +23,6 @@ describe('report / createReport', () => {
{ webpack: webpackStatsBaselineExtracted },
]));

expect(actual).toMatchSnapshot();
expect(omit(actual, ['version'])).toMatchSnapshot();
});
});

0 comments on commit 15b1fbc

Please sign in to comment.