diff --git a/changelog.md b/changelog.md index 3a7a24f..f6bc8ff 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,11 @@ # Changelog +## 2026-05-08 - 3.6.4 - fix(tapbundle_serverside) +use native fs promises to create the test files directory and write the downloaded alpine tarball + +- replaces smartfs directory and file writes with fs.promises.mkdir and fs.promises.writeFile in TestFileProvider +- keeps recursive directory creation before saving the downloaded docker alpine image + ## 2026-03-27 - 3.6.3 - fix(tapbundle_serverside) add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index a2e033e..15ce50b 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tstest', - version: '3.6.3', + version: '3.6.4', description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.' } diff --git a/ts_tapbundle_serverside/classes.testfileprovider.ts b/ts_tapbundle_serverside/classes.testfileprovider.ts index 1accd87..3ee8004 100644 --- a/ts_tapbundle_serverside/classes.testfileprovider.ts +++ b/ts_tapbundle_serverside/classes.testfileprovider.ts @@ -12,9 +12,9 @@ export class TestFileProvider { const response = await plugins.smartrequest.SmartRequest.create() .url(fileUrls.dockerAlpineImage) .get(); - await plugins.smartfsInstance.directory(paths.testFilesDir).recursive().create(); const buffer = Buffer.from(await response.arrayBuffer()); - await plugins.smartfsInstance.file(filePath).write(buffer); + await plugins.fs.promises.mkdir(paths.testFilesDir, { recursive: true }); + await plugins.fs.promises.writeFile(filePath, buffer); return filePath; } -} \ No newline at end of file +}