-
Notifications
You must be signed in to change notification settings - Fork 1
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
Locate approvals files in subfolder #24
Comments
Hi! // Leave null if you want to use the default path.
namer: Namer(
options: FileNamerOptions(
folderPath: 'test/approved_files',
testName: 'test name',
fileName: 'approval_test',
description: description,
),
), If it helped you, then please unsubscribe here about it. |
I think this is not exactly what I'm looking for. What I'm looking for is a simple way to globally move the generated files inside a subfolder, so that next tests are simple to create. I was thinking of a global factory which would provide the Namer, thus my proposition of having a new option in Namer like :
Don't worry about the documentation 😉 , I tend to look at the source code directly when I'm looking for an answer and I missed the |
Okay, I get you. I'll try to come up with something over the weekend and solve it) |
Is your feature request related to a problem? Please describe.
approvals files are located next to the test file. When the number of tests grows, the directory will become bigger and bigger.
Describe the solution you'd like
Ideally, it would be possible to give in the namer options a boolean which would move the files inside a sub folder, for example
_approvals
. This way, we could directly distinguish test files from approval files.Describe alternatives you've considered
Additional context
For example, jest snapshot testing uses the subfolder
__snapshot__
.The text was updated successfully, but these errors were encountered: