-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add placeholder tests to react-kitchen-sink
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
// }), | ||
// }); |