test: split unit and integration suites so CI can run without a wallet
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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';
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user