I often use the testfixtures library.
Often the data is in the same shared folder, but the tests are in different folders. Because of this you have to use ugly paths.
To solve this problem, I decided to add the ability to pin the target path using fs.FS.
With this simple solution, you can fix the target path for finding fixtures. At least the paths in the tests will look nice. As a maximum, you no longer have to mess with ../
I often use the testfixtures library. Often the data is in the same shared folder, but the tests are in different folders. Because of this you have to use ugly paths. To solve this problem, I decided to add the ability to pin the target path using fs.FS.
With this simple solution, you can fix the target path for finding fixtures. At least the paths in the tests will look nice. As a maximum, you no longer have to mess with
../