fix(tapbundle_serverside): use native fs promises to create the test files directory and write the downloaded alpine tarball

This commit is contained in:
2026-05-08 11:10:38 +00:00
parent 31ff6f6e28
commit c93194843e
3 changed files with 10 additions and 4 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog # 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) ## 2026-03-27 - 3.6.3 - fix(tapbundle_serverside)
add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests add TapNodeTools cleanup hooks to stop SmartNetwork processes after tests
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tstest', 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.' description: 'A powerful, modern test runner for TypeScript with multi-runtime support (Node.js, Deno, Bun, Chromium) and a batteries-included test framework.'
} }
@@ -12,9 +12,9 @@ export class TestFileProvider {
const response = await plugins.smartrequest.SmartRequest.create() const response = await plugins.smartrequest.SmartRequest.create()
.url(fileUrls.dockerAlpineImage) .url(fileUrls.dockerAlpineImage)
.get(); .get();
await plugins.smartfsInstance.directory(paths.testFilesDir).recursive().create();
const buffer = Buffer.from(await response.arrayBuffer()); 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; return filePath;
} }
} }