mirror of
https://github.com/tompro/sattle.git
synced 2026-08-27 07:15:59 +00:00
19 lines
528 B
TypeScript
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'],
|
|
},
|
|
});
|