Files
sattle/vitest.config.ts

19 lines
528 B
TypeScript

import { fileURLToPath, URL } from 'node:url';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
test: {
// the tested modules are pure crypto/codec/protocol logic - node's own
// WebCrypto (crypto.subtle) and fetch cover everything they need, no
// jsdom. The ops suite spins real mock-mint HTTP servers on loopback.
environment: 'node',
include: ['src/**/*.test.ts'],
},
});