jest icon indicating copy to clipboard operation
jest copied to clipboard

How I can get the project name or displayName from a test file

Open danifornells opened this issue 3 years ago • 2 comments

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.

danifornells avatar Aug 04 '21 11:08 danifornells

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:

sigveio avatar Aug 04 '21 11:08 sigveio

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.

github-actions[bot] avatar Aug 04 '22 11:08 github-actions[bot]

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.

github-actions[bot] avatar Sep 03 '22 11:09 github-actions[bot]

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.

github-actions[bot] avatar Oct 04 '22 00:10 github-actions[bot]