-
Notifications
You must be signed in to change notification settings - Fork 109
Example for custom file name #59
Comments
Depends on your OS. On Linux and OS X you can use the mv command. |
I was referring to something built in. In a similar way that nock permits. |
You can change where the fixtures are stored by setting |
Assaf, I think the poster means instead of the name 152063271234878036, it might be nice to have a name derrived from the test name or maybe the request URL. Like if the first line of the file is: Might use something like https://www.npmjs.com/package/slugify to generate something like this: |
I'm interested in forking project and implement feature of "slugified" fixtures names if nobody working on it. I think could be really an interesting feature. |
In the readme you say The file name is a timestamp, but feel free to rename it to something more rescriptive.
However, I don't see where this is possible. I'm trying to use this within mocha tests and would like to explicitly set the filename so that I have control of the fixture content in a CI environment to use scrubbed data. The tests do not use request, however, the library that is under test wraps up request as needed by the library.
The text was updated successfully, but these errors were encountered: