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