Closed lilleyse closed 1 year ago
Assuming that this refers to things like https://github.com/CesiumGS/3d-tiles-tools/blob/645d86631442adaa5b79471e2153bbdfa50893cf/specs/lib/combineTilesetSpec.js#L156 , I'll move this from the validator to the tools repository.
With the new functionality of 0.2.0, it will be hard to avoid writing "any" files.
Part of the 0.2.0 functionality is to convert between (file,ZIP,3TZ,3DTILES) and (file,3TZ,3DTILES). Testing this functionality requires a file system. In a few places, there already is something like
afterEach(function () {
SpecHelpers.forceDeleteDirectory(basicOutput);
});
to clean things up. This is not yet done for all written files, but could certainly be extended, if the goal was to work towards a state where the specs leave the directories "'clean', as if they had never been run".
So I don't think this is critical, but will leave it open for now...
The current specs do ("inherently") write data to the specs/data/output
folder, but as of now, all the output should be cleaned up after the tests, so I think that it is OK to close this one.
If possible, use
writeCallback
or at least use OS temp directories.