Is it possible to specify the snapshot path as part of calling toMatchSnapshot? I'd like to pass in the path to the folder where the snapshot file should be stored, and also the test name used for the snapshot file. Normally this works out of the box, but I only have one single spec file which dynamically generates test cases, so I end up with a single snapshot file, but like to have one snapshot file per generated test case.
Is it possible to specify the snapshot path as part of calling
toMatchSnapshot
? I'd like to pass in the path to the folder where the snapshot file should be stored, and also the test name used for the snapshot file. Normally this works out of the box, but I only have one single spec file which dynamically generates test cases, so I end up with a single snapshot file, but like to have one snapshot file per generated test case.