fix(tapbundle_serverside): use native fs promises to create the test files directory and write the downloaded alpine tarball
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.'
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user