Skip to content

Commit

Permalink
Add placeholder tests to react-kitchen-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Jun 22, 2017
1 parent d04f223 commit b6de6ac
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/cra-kitchen-sink/src/storyshots.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
describe('Storyshots', () => {
xit('should run snapshot tests, but we\'ve disabled this temporarily', () => {});
});

// NOTE: this file should contain a snapshot test, but it is temporarily disabled.
//
// From @tmeasday: "Both Lerna/npm5 and Jest are incompatible, so we cannot run
// Jest tests right now, unless we go to great lengths (see `test-cra`'s build process)."
//
// A succinct repro here: https://github.com/tmeasday/preserve-symlinks-test
//
// Once this difference is resolved, we should uncomment the following code:
//
// import initStoryshots, { snapshotWithOptions } from '@storybook/addon-storyshots';
// import path from 'path';
//
// function createNodeMock(element) {
// if (element.type === 'div') {
// return { scrollWidth: 123 };
// }
// return null;
// }
//
// initStoryshots({
// framework: 'react',
// configPath: path.join(__dirname, '..', '.storybook'),
// test: snapshotWithOptions({
// createNodeMock,
// }),
// });

0 comments on commit b6de6ac

Please sign in to comment.