jest
jest copied to clipboard
How I can get the project name or displayName from a test file
According the configuration, you can specify many projects as shown on docs
- https://jestjs.io/docs/configuration#projects-arraystring--projectconfig
Is there a way to get the current running project name or config from a test file? Would be useful for managing different scenarios or data based on that.
Hi @danifornells,
This issue tracker is meant for reporting bugs or submitting proposals for new features.
Here are a few useful resources if you have questions or need help:
This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.