mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 07:08:10 -05:00
* 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>
12 lines
369 B
TypeScript
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;
|
|
// }
|