test: update tests for Deno with @git.zone/tstest/tapbundle

- Update tapbundle imports from @push.rocks to @git.zone/tstest
- Change all test file imports from .js to .ts extensions
- Tests verified working with Deno runtime
- All 10 logger tests passing
- SNMP tests ready for Deno execution
This commit is contained in:
2025-10-18 15:58:20 +00:00
parent a2ae9960b6
commit 968cbbd8fc
3 changed files with 8 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { tap, expect } from '@push.rocks/tapbundle';
import { Logger } from '../ts/logger.js';
import { tap, expect } from 'npm:@git.zone/tstest@^1.0.0/tapbundle';
import { Logger } from '../ts/logger.ts';
// Create a Logger instance for testing
const logger = new Logger();

View File

@@ -1,8 +1,8 @@
import { tap, expect } from '@push.rocks/tapbundle';
import { NupstSnmp } from '../ts/snmp/manager.js';
import type { ISnmpConfig, IUpsStatus } from '../ts/snmp/types.js';
import { tap, expect } from 'npm:@git.zone/tstest@^1.0.0/tapbundle';
import { NupstSnmp } from '../ts/snmp/manager.ts';
import type { ISnmpConfig, IUpsStatus } from '../ts/snmp/types.ts';
import * as qenv from '@push.rocks/qenv';
import * as qenv from 'npm:@push.rocks/qenv';
const testQenv = new qenv.Qenv('./', '.nogit/');
// Create an SNMP instance with debug enabled