Merge branch 'fix-ci-limiter-and-test' into new.add-discusions-roomactionsview
This commit is contained in:
commit
04f3c7e04e
|
@ -359,7 +359,7 @@ jobs:
|
|||
- run:
|
||||
name: Test
|
||||
command: |
|
||||
yarn test
|
||||
yarn test -w 8
|
||||
|
||||
- run:
|
||||
name: Codecov
|
||||
|
|
|
@ -22,18 +22,13 @@ global.Date.now = jest.fn(() => new Date('2019-10-10').getTime());
|
|||
|
||||
const converter = new Stories2SnapsConverter();
|
||||
|
||||
// Runner
|
||||
initStoryshots({
|
||||
asyncJest: true,
|
||||
test: ({ story, context, done }) => {
|
||||
test: ({ story, context }) => {
|
||||
const snapshotFilename = converter.getSnapshotFileName(context);
|
||||
const storyElement = story.render();
|
||||
const { update, toJSON } = render(storyElement);
|
||||
update(storyElement);
|
||||
setTimeout(() => {
|
||||
const json = toJSON();
|
||||
expect(JSON.stringify(json)).toMatchSpecificSnapshot(snapshotFilename);
|
||||
done();
|
||||
}, 10);
|
||||
const json = toJSON();
|
||||
expect(JSON.stringify(json)).toMatchSpecificSnapshot(snapshotFilename);
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue