Storybook-readme: Support with jest and storyshots

Created on 27 Feb 2018  路  2Comments  路  Source: tuchk4/storybook-readme

Hello, I'm using .withDocs() to load some markdown for a story, which works fine. But when I try to run our jest tests, the test suite fails. Any ideas? Apologies if I'm missing something basic.

test console:

Test suite failed to run
README.md: Unexpected character '#' (1:0)

It's failing because the jest runner doesn't know how to interpret the README.md:

import readme from '../README.md';

Thanks

Most helpful comment

yes, you got error because jest does not know how to work with md files.
there are few options to resolve this:

All 2 comments

yes, you got error because jest does not know how to work with md files.
there are few options to resolve this:

Thanks Valerii, that was it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesBliss picture JamesBliss  路  5Comments

deehuey picture deehuey  路  3Comments

mcookdev picture mcookdev  路  3Comments

lcaroselli picture lcaroselli  路  5Comments

smrq picture smrq  路  9Comments