Jest: __fixtures__

Created on 26 Feb 2017  路  4Comments  路  Source: facebook/jest

Could we have a convention for a __fixtures__ directory name which is ignored by Jest?

__tests__/
  __fixtures__/
  __snapshots__/
  something.test.js

It would be cool to do something more with this in the future

Most helpful comment

I don't understand how this is a duplicate of that issue

All 4 comments

This is a duplicate of #1705

I don't understand how this is a duplicate of that issue

Me neither. It looks like it's not really a duplicate.

You can set jest to ignore some paths with testPathIgnorePatterns.

In your jest config :
"testPathIgnorePatterns" : ["/node_modules/", "/__fixtures__/"]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timoxley picture timoxley  路  76Comments

udbhav picture udbhav  路  236Comments

bookman25 picture bookman25  路  79Comments

maraisr picture maraisr  路  77Comments

vitalibozhko picture vitalibozhko  路  138Comments