Files
self/common/tests/setup.ts
Aaron DeRuvo d8bf5f9db7 Move Proving attest and cose (#950)
* moved attest and cose utils to common

with cursor converted tests in common to use vitest and converted coseVerify.test to vitest after moving from app to common

what does cryptoLoader do?

* moved away

* get buff

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-08-25 12:26:19 +02:00

12 lines
369 B
TypeScript

// Vitest setup file for common package tests
import { vi } from 'vitest';
// Global test setup
global.vi = vi;
// Node environment already provides Buffer; avoid overriding it.
// If you later switch to a browser-like test env, guard before assigning:
// if (typeof globalThis.Buffer === 'undefined') {
// globalThis.Buffer = (await import('buffer')).Buffer;
// }