fix(test): Await file writes in Handelsregister tests to ensure all downloads complete before test end
This commit is contained in:
parent
1d0d44dc29
commit
209af50a4c
@ -1,5 +1,11 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-04-09 - 1.5.3 - fix(test)
|
||||||
|
Await file writes in Handelsregister tests to ensure all downloads complete before test end
|
||||||
|
|
||||||
|
- Replaced array.map with await Promise.all to properly await asynchronous file writes in test/test.handelsregister.ts
|
||||||
|
- Improved robustness of asynchronous operations in test suite
|
||||||
|
|
||||||
## 2025-04-09 - 1.5.2 - fix(readme)
|
## 2025-04-09 - 1.5.2 - fix(readme)
|
||||||
Improve .env configuration code block formatting in documentation
|
Improve .env configuration code block formatting in documentation
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ tap.test('should get the data for a specific company', async () => {
|
|||||||
const result = await testOpenDataInstance.handelsregister.getSpecificCompany(testCompany);
|
const result = await testOpenDataInstance.handelsregister.getSpecificCompany(testCompany);
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|
||||||
result.files.map(async (file) => {
|
await Promise.all(result.files.map(async (file) => {
|
||||||
await file.writeToDir('./.nogit/testoutput');
|
await file.writeToDir('./.nogit/testoutput');
|
||||||
});
|
}));
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@fin.cx/opendata',
|
name: '@fin.cx/opendata',
|
||||||
version: '1.5.2',
|
version: '1.5.3',
|
||||||
description: 'A comprehensive TypeScript library that manages open business data for German companies by integrating MongoDB, processing JSONL bulk data, and automating browser interactions for Handelsregister data retrieval.'
|
description: 'A comprehensive TypeScript library that manages open business data for German companies by integrating MongoDB, processing JSONL bulk data, and automating browser interactions for Handelsregister data retrieval.'
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user