fix(ci): Update CI workflows and build config; bump dependencies; code style and TS config fixes

This commit is contained in:
2025-11-29 09:48:31 +00:00
parent 36d7cb69a3
commit 0701207acd
20 changed files with 7858 additions and 5194 deletions

View File

@@ -1,4 +1,4 @@
import { expect, tap } from '@push.rocks/tapbundle';
import { tap, expect } from '@git.zone/tstest/tapbundle';
import { Qenv } from '@push.rocks/qenv';
import * as elasticsearch from '../ts/index.js';
@@ -12,8 +12,8 @@ tap.test('first test', async () => {
node: 'http://localhost:9200',
auth: {
username: 'elastic',
password: 'YourPassword'
}
password: 'YourPassword',
},
});
expect(testElasticLog).toBeInstanceOf(elasticsearch.ElsSmartlogDestination);
});
@@ -42,8 +42,8 @@ tap.test('should create an ElasticDoc instance', async () => {
node: 'http://localhost:9200',
auth: {
username: 'elastic',
password: 'YourPassword'
}
password: 'YourPassword',
},
});
expect(testElasticDoc).toBeInstanceOf(elasticsearch.ElasticDoc);
});
@@ -53,17 +53,17 @@ tap.test('should add and update documents in a piping session', async () => {
await testElasticDoc.pipeDocument({
docId: '1',
timestamp: new Date().toISOString(),
doc: { name: 'doc1' }
doc: { name: 'doc1' },
});
await testElasticDoc.pipeDocument({
docId: '2',
timestamp: new Date().toISOString(),
doc: { name: 'doc2' }
doc: { name: 'doc2' },
});
await testElasticDoc.pipeDocument({
docId: '1',
timestamp: new Date().toISOString(),
doc: { name: 'updated doc1' }
doc: { name: 'updated doc1' },
});
});
@@ -86,4 +86,4 @@ tap.test('should take and store snapshot', async () => {
});
});
tap.start();
export default tap.start();