Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Add support for regular expressions/glob patterns when setting fixtures location #206

Open
Kolobamanacas opened this issue Nov 14, 2022 · 1 comment
Assignees

Comments

@Kolobamanacas
Copy link

In some highly decoupled projects with large number of integration tests it is sometimes convenient not to store all the fixtures in one place, but to put them closer to tested modules. Currently I found only two ways to handle such files hierarchy:

  1. To list all possible paths as arguments when running CLI command. The downside of this approach is that the command become too heavy and hard to read and maintain.
  2. To use Programmatically loading fixtures feature. It potentially could save the day, but it only supports 0.3.0+ version of TypeORM and also requires too many lines of code for such a simple task of files filtering.

Potential feature as I see it has to have two arguments, let's say "rootPath" and regex/glob "matchExpression":

fixtures --rootPaths=./src --matchExpression="**/fixtures/*.yml"
@fstamour
Copy link

Looks like a duplicate of #163

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants