Skip to content

Commit

Permalink
fix vitest config
Browse files Browse the repository at this point in the history
  • Loading branch information
slvnperron committed Dec 30, 2024
1 parent 96faaeb commit e46ef23
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/vai",
"version": "0.0.4",
"version": "0.0.5",
"description": "Vitest AI (vai) – a vitest extension for testing with LLMs",
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion vai/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"moduleResolution": "Node",
"target": "ES2017",
"strict": true,
"strict": false,
"jsx": "preserve",
"noUnusedLocals": true,
"noUnusedParameters": true,
Expand Down
2 changes: 2 additions & 0 deletions vai/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
retry: 2, // because LLMs can fail
testTimeout: 60_000, // because LLMs can be slow
include: ['./src/**/*.test.ts'],
setupFiles: './vitest.setup.ts'
}
Expand Down
2 changes: 2 additions & 0 deletions zai/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { defineConfig } from 'vitest/config'

export default defineConfig({
test: {
retry: 2, // because LLMs can fail
testTimeout: 60_000, // because LLMs can be slow
include: ['./src/**/*.test.ts'],
setupFiles: './vitest.setup.ts'
}
Expand Down

0 comments on commit e46ef23

Please sign in to comment.