Jest: How to pass current test-file-path to environment.setup ?

Created on 25 Aug 2018  路  2Comments  路  Source: facebook/jest

Hi, I need to setup jest-dev-server per test-file. So each this configuration should be invisible. For example abc.test.js is running, dev server shuld be started for abc.test.json configuration.

I think environment is legal way. But how current file path can be obtained in setup method?

image

All 2 comments

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions. You'll find more on Jest docs help page. Thank you :)

Thank you very much. When I created this issue I choosed question type. It is exist. I thought you would change issue type on suggest. Screen can help you. So SLA is good....

Was this page helpful?
0 / 5 - 0 ratings