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:
@@ -6,7 +6,8 @@
|
|||||||
"dev": "deno run --allow-all mod.ts",
|
"dev": "deno run --allow-all mod.ts",
|
||||||
"compile": "deno task compile:all",
|
"compile": "deno task compile:all",
|
||||||
"compile:all": "bash scripts/compile-all.sh",
|
"compile:all": "bash scripts/compile-all.sh",
|
||||||
"test": "deno test --allow-all tests/",
|
"test": "deno run --allow-all test/test.ts && deno run --allow-all test/test.logger.ts",
|
||||||
|
"test:watch": "deno test --allow-all --watch test/",
|
||||||
"check": "deno check mod.ts",
|
"check": "deno check mod.ts",
|
||||||
"fmt": "deno fmt",
|
"fmt": "deno fmt",
|
||||||
"lint": "deno lint"
|
"lint": "deno lint"
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
import { tap, expect } from '@push.rocks/tapbundle';
|
import { tap, expect } from 'npm:@git.zone/tstest@^1.0.0/tapbundle';
|
||||||
import { Logger } from '../ts/logger.js';
|
import { Logger } from '../ts/logger.ts';
|
||||||
|
|
||||||
// Create a Logger instance for testing
|
// Create a Logger instance for testing
|
||||||
const logger = new Logger();
|
const logger = new Logger();
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
import { tap, expect } from '@push.rocks/tapbundle';
|
import { tap, expect } from 'npm:@git.zone/tstest@^1.0.0/tapbundle';
|
||||||
import { NupstSnmp } from '../ts/snmp/manager.js';
|
import { NupstSnmp } from '../ts/snmp/manager.ts';
|
||||||
import type { ISnmpConfig, IUpsStatus } from '../ts/snmp/types.js';
|
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/');
|
const testQenv = new qenv.Qenv('./', '.nogit/');
|
||||||
|
|
||||||
// Create an SNMP instance with debug enabled
|
// Create an SNMP instance with debug enabled
|
||||||
|
Reference in New Issue
Block a user