test: split unit and integration suites so CI can run without a wallet

This commit is contained in:
FilipBl4gojevic
2026-07-27 14:27:40 +02:00
parent e572ef8e04
commit 5c858f1143
3 changed files with 5 additions and 3 deletions

View File

@@ -12,7 +12,9 @@
"build": "tsup && chmod +x build/index.js",
"typecheck": "tsc --noEmit --incremental",
"start": "node build/index.js",
"test": "npm run build && node --import tsx --test test/run.test.ts"
"test": "npm run test:unit",
"test:unit": "node --import tsx --test test/unit/*.test.ts",
"test:integration": "npm run build && node --import tsx --test test/integration/*.test.ts"
},
"files": [
"build"

View File

@@ -1,6 +1,6 @@
import { describe, test, before, after } from 'node:test';
import assert from 'node:assert/strict';
import { startServer, stopServer, callTool, getMnemonic, wait, ServerContext } from './setup.ts';
import { startServer, stopServer, callTool, getMnemonic, wait, ServerContext } from '../setup.ts';
// Always-succeeds PlutusV2 validator (accepts any datum/redeemer/context, returns True)
const ALWAYS_SUCCEEDS_V2 = '49480100002221200101';

View File

@@ -1,6 +1,6 @@
import { describe, test } from 'node:test';
import assert from 'node:assert/strict';
import { deriveNftAssetName } from '../src/vector/agent-network.ts';
import { deriveNftAssetName } from '../../src/vector/agent-network.ts';
// Parity vectors — verified against pycardano OutputReference.to_cbor() and
// agent-sdk-py plutus_serialise_data(0, [tx_hash_bytes, idx]). All three