Skip to content

Commit

Permalink
chore: vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
ohager committed Aug 15, 2024
1 parent 211314b commit 5c2b711
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/crypto/src/__tests__/random.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { describe, it, expect, test } from 'vitest';
import {getRandomBytes, getRandomString, getRandomWords} from '../random';

Expand Down
3 changes: 2 additions & 1 deletion packages/crypto/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"outDir": "./out",
"types": [
"jest",
"node"
"node",
"vitest/globals"
]
},
"typeRoots": [
Expand Down
8 changes: 8 additions & 0 deletions packages/crypto/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// vitest.config.ts
import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
globals: true
}
})

0 comments on commit 5c2b711

Please sign in to comment.