fix(tests): update test patterns and fix assertion syntax

- Change tap test signatures from async (t) => to async () =>
- Replace t.ok(), t.notOk(), t.equal() with expect() assertions
- Fix import paths for helpers to use correct ../../helpers/ path
- Update PerformanceTracker to use instance version
- Add missing expect imports from tapbundle
- Remove t.end() calls that are no longer needed
- Ensure all tests have tap.start() for proper execution
This commit is contained in:
2025-05-30 06:31:02 +00:00
parent 0ba55dcb60
commit 1fae7db72c
4 changed files with 694 additions and 1879 deletions

View File

@ -2,7 +2,7 @@ import { tap, expect } from '@git.zone/tstest/tapbundle';
import * as plugins from '../../../ts/plugins.js';
import { EInvoice } from '../../../ts/index.js';
import { CorpusLoader } from '../../helpers/corpus.loader.js';
import { PerformanceTracker } from '../../helpers/performance.tracker.js';
import { PerformanceTracker } from '../../helpers/performance.tracker.instance.js';
const testTimeout = 300000; // 5 minutes timeout for corpus processing