Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(deps): upgrade worker tests to vitest4 (#12841)

Nimar96e3c67e5229
diff --git a/.gitignore b/.gitignore
index b8be853f8d..43790554f1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@ migrate
# testing
/coverage
+**/coverage/
/certs/
# database
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 8f6b4a090f..d40e26b3e7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -25,7 +25,7 @@ importers:
devDependencies:
'@release-it/bumper':
specifier: ^7.0.5
- version: 7.0.5([email protected](@types/[email protected]))
braces:
specifier: 3.0.3
version: 3.0.3
@@ -40,7 +40,7 @@ importers:
version: 3.8.1
release-it:
specifier: ^19.2.4
- version: 19.2.4(@types/[email protected])
+ version: 19.2.4(@types/[email protected])([email protected])
turbo:
specifier: 2.8.20
version: 2.8.20
@@ -58,10 +58,10 @@ importers:
version: 7.0.6
next:
specifier: 16.2.1
next-auth:
specifier: ^4.24.13
zod:
specifier: 4.3.6
version: 4.3.6
@@ -178,7 +178,7 @@ importers:
version: 1.9.0
'@prisma/client':
specifier: ^6.17.1
'@react-email/components':
specifier: ^0.5.1
@@ -241,7 +241,7 @@ importers:
version: 4.1.1
next-auth:
specifier: ^4.24.13
nodemailer:
specifier: ^7.0.11
version: 7.0.11
@@ -296,7 +296,7 @@ importers:
version: 3.8.1
prisma:
specifier: ^6.17.1
- version: 6.17.1([email protected])
ts-node:
specifier: ^10.9.2
version: 10.9.2(@types/[email protected])([email protected])
@@ -347,7 +347,7 @@ importers:
version: 3.2.2([email protected])
'@ferrucc-io/emoji-picker':
specifier: ^0.0.47
'@headlessui/react':
specifier: 2.2.7
@@ -383,7 +383,7 @@ importers:
'@next-auth/prisma-adapter':
specifier: ^1.0.7
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
@@ -506,7 +506,7 @@ importers:
version: 4.2.0([email protected])
'@sentry/nextjs':
specifier: ^10.46.0
'@t3-oss/env-nextjs':
specifier: ^0.11.1
@@ -530,7 +530,7 @@ importers:
'@trpc/next':
specifier: ^11.13.4
'@trpc/react-query':
specifier: ^11.13.4
@@ -623,13 +623,13 @@ importers:
version: 3.3.11
next:
specifier: 16.2.1
next-auth:
specifier: ^4.24.13
next-query-params:
specifier: ^5.1.0
next-themes:
specifier: ^0.4.6
@@ -647,7 +647,7 @@ importers:
version: 2.4.1([email protected])
prisma:
specifier: ^6.17.1
- version: 6.17.1([email protected])
protobufjs:
specifier: ^7.4.0
version: 7.4.0
@@ -762,7 +762,7 @@ importers:
version: 4.2.1
'@testing-library/jest-dom':
specifier: ^6.4.6
'@testing-library/react':
specifier: ^15.0.7
@@ -989,6 +989,9 @@ importers:
'@typescript/native-preview':
specifier: 7.0.0-dev.20260122.3
version: 7.0.0-dev.20260122.3
+ '@vitest/coverage-v8':
+ specifier: ^4.1.2
eslint:
specifier: ^9.39.2
version: 9.39.4([email protected])
@@ -1011,8 +1014,8 @@ importers:
specifier: ^5.7.2
version: 5.9.2
vitest:
- specifier: ^3.2.4
+ specifier: ^4.1.2
wait-for-expect:
specifier: ^3.0.2
version: 3.0.2
@@ -1643,6 +1646,10 @@ packages:
resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==}
+ resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==}
+ engines: {node: '>=18'}
+
'@bundled-es-modules/[email protected]':
resolution: {integrity: sha512-8o+5fRPLNbjbdGRRmJj3h6Hh1AQJf2dk3qQ/5ZFb+PXkRNiSoMGGUKlsgLfrxneb72axVJyIYji64E2+nNfYyw==}
@@ -4400,111 +4407,56 @@ packages:
rollup:
optional: true
- '@rollup/[email protected]':
- resolution: {integrity: sha512-mRSi+4cBjrRLoaal2PnqH82Wqyb+d3HsPUN/W+WslCXsZsyHa9ZeQQX/pQsZaVIWDkPcpV6jJ+3KLbTbgnwv8w==}
- cpu: [arm]
- os: [android]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-WOhNW9K8bR3kf4zLxbfg6Pxu2ybOUbB2AjMDHSQx86LIF4rH4Ft7vmMwNt0loO0eonglSNy4cpD3MKXXKQu0/A==}
cpu: [arm]
os: [android]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-CbDGaMpdE9sh7sCmTrTUyllhrg65t6SwhjlMJsLr+J8YjFuPmCEjbBSx4Z/e4SmDyH3aB5hGaJUP2ltV/vcs4w==}
- cpu: [arm64]
- os: [android]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-u6JHLll5QKRvjciE78bQXDmqRqNs5M/3GVqZeMwvmjaNODJih/WIrJlFVEihvV0MiYFmd+ZyPr9wxOVbPAG2Iw==}
cpu: [arm64]
os: [android]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-Nr7SlQeqIBpOV6BHHGZgYBuSdanCXuw09hon14MGOLGmXAFYjx1wNvquVPmpZnl0tLjg25dEdr4IQ6GgyToCUA==}
- cpu: [arm64]
- os: [darwin]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-qEF7CsKKzSRc20Ciu2Zw1wRrBz4g56F7r/vRwY430UPp/nt1x21Q/fpJ9N5l47WWvJlkNCPJz3QRVw008fi7yA==}
cpu: [arm64]
os: [darwin]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-DZ8N4CSNfl965CmPktJ8oBnfYr3F8dTTNBQkRlffnUarJ2ohudQD17sZBa097J8xhQ26AwhHJ5mvUyQW8ddTsQ==}
- cpu: [x64]
- os: [darwin]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-WADYozJ4QCnXCH4wPB+3FuGmDPoFseVCUrANmA5LWwGmC6FL14BWC7pcq+FstOZv3baGX65tZ378uT6WG8ynTw==}
cpu: [x64]
os: [darwin]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-yMTrCrK92aGyi7GuDNtGn2sNW+Gdb4vErx4t3Gv/Tr+1zRb8ax4z8GWVRfr3Jw8zJWvpGHNpss3vVlbF58DZ4w==}
- cpu: [arm64]
- os: [freebsd]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-6b8wGHJlDrGeSE3aH5mGNHBjA0TTkxdoNHik5EkvPHCt351XnigA4pS7Wsj/Eo9Y8RBU6f35cjN9SYmCFBtzxw==}
cpu: [arm64]
os: [freebsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-lMfF8X7QhdQzseM6XaX0vbno2m3hlyZFhwcndRMw8fbAGUGL3WFMBdK0hbUBIUYcEcMhVLr1SIamDeuLBnXS+Q==}
- cpu: [x64]
- os: [freebsd]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-h25Ga0t4jaylMB8M/JKAyrvvfxGRjnPQIR8lnCayyzEjEOx2EJIlIiMbhpWxDRKGKF8jbNH01NnN663dH638mA==}
cpu: [x64]
os: [freebsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-k9oD15soC/Ln6d2Wv/JOFPzZXIAIFLp6B+i14KhxAfnq76ajt0EhYc5YPeX6W1xJkAdItcVT+JhKl1QZh44/qw==}
- cpu: [arm]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==}
cpu: [arm]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-vTNlKq+N6CK/8UktsrFuc+/7NlEYVxgaEgRXVUVK258Z5ymho29skzW1sutgYjqNnquGwVUObAaxae8rZ6YMhg==}
- cpu: [arm]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==}
cpu: [arm]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-RGrFLWgMhSxRs/EWJMIFM1O5Mzuz3Xy3/mnxJp/5cVhZ2XoCAxJnmNsEyeMJtpK+wu0FJFWz+QF4mjCA7AUQ3w==}
- cpu: [arm64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==}
cpu: [arm64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-kASyvfBEWYPEwe0Qv4nfu6pNkITLTb32p4yTgzFCocHnJLAHs+9LjUu9ONIhvfT/5lv4YS5muBHyuV84epBo/A==}
- cpu: [arm64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==}
cpu: [arm64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-JiuKcp2teLJwQ7vkJ95EwESWkNRFJD7TQgYmCnrPtlu50b4XvT5MOmurWNrCj3IFdyjBQ5p9vnrX4JM6I8OE7g==}
- cpu: [loong64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==}
cpu: [loong64]
@@ -4515,11 +4467,6 @@ packages:
cpu: [loong64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-EoGSa8nd6d3T7zLuqdojxC20oBfNT8nexBbB/rkxgKj5T5vhpAQKKnD+h3UkoMuTyXkP5jTjK/ccNRmQrPNDuw==}
- cpu: [ppc64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==}
cpu: [ppc64]
@@ -4530,51 +4477,26 @@ packages:
cpu: [ppc64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-4s+Wped2IHXHPnAEbIB0YWBv7SDohqxobiiPA1FIWZpX+w9o2i4LezzH/NkFUl8LRci/8udci6cLq+jJQlh+0g==}
- cpu: [riscv64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==}
cpu: [riscv64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-68k2g7+0vs2u9CxDt5ktXTngsxOQkSEV/xBbwlqYcUrAVh6P9EgMZvFsnHy4SEiUl46Xf0IObWVbMvPrr2gw8A==}
- cpu: [riscv64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==}
cpu: [riscv64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-VYsFMpULAz87ZW6BVYw3I6sWesGpsP9OPcyKe8ofdg9LHxSbRMd7zrVrr5xi/3kMZtpWL/wC+UIJWJYVX5uTKg==}
- cpu: [s390x]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==}
cpu: [s390x]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-3EhFi1FU6YL8HTUJZ51imGJWEX//ajQPfqWLI3BQq4TlvHy4X0MOr5q3D2Zof/ka0d5FNdPwZXm3Yyib/UEd+w==}
- cpu: [x64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==}
cpu: [x64]
os: [linux]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-eoROhjcc6HbZCJr+tvVT8X4fW3/5g/WkGvvmwz/88sDtSJzO7r/blvoBDgISDiCjDRZmHpwud7h+6Q9JxFwq1Q==}
- cpu: [x64]
- os: [linux]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==}
cpu: [x64]
@@ -4585,51 +4507,26 @@ packages:
cpu: [x64]
os: [openbsd]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-OueLAWgrNSPGAdUdIjSWXw+u/02BRTcnfw9PN41D2vq/JSEPnJnVuBgw18VkN8wcd4fjUs+jFHVM4t9+kBSNLw==}
- cpu: [arm64]
- os: [openharmony]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-pESDkos/PDzYwtyzB5p/UoNU/8fJo68vcXM9ZW2V0kjYayj1KaaUfi1NmTUTUpMn4UhU4gTuK8gIaFO4UGuMbA==}
cpu: [arm64]
os: [openharmony]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-GOFuKpsxR/whszbF/bzydebLiXIHSgsEUp6M0JI8dWvi+fFa1TD6YQa4aSZHtpmh2/uAlj/Dy+nmby3TJ3pkTw==}
- cpu: [arm64]
- os: [win32]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-hj1wFStD7B1YBeYmvY+lWXZ7ey73YGPcViMShYikqKT1GtstIKQAtfUI6yrzPjAy/O7pO0VLXGmUVWXQMaYgTQ==}
cpu: [arm64]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-iah+THLcBJdpfZ1TstDFbKNznlzoxa8fmnFYK4V67HvmuNYkVdAywJSoteUszvBQ9/HqN2+9AZghbajMsFT+oA==}
- cpu: [ia32]
- os: [win32]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-SyaIPFoxmUPlNDq5EHkTbiKzmSEmq/gOYFI/3HHJ8iS/v1mbugVa7dXUzcJGQfoytp9DJFLhHH4U3/eTy2Bq4w==}
cpu: [ia32]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-J9QDiOIZlZLdcot5NXEepDkstocktoVjkaKUtqzgzpt2yWjGlbYiKyp05rWwk4nypbYUNoFAztEgixoLaSETkg==}
- cpu: [x64]
- os: [win32]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-RdcryEfzZr+lAr5kRm2ucN9aVlCCa2QNq4hXelZxb8GG0NJSazq44Z3PCCc8wISRuCVnGs0lQJVX5Vp6fKA+IA==}
cpu: [x64]
os: [win32]
- '@rollup/[email protected]':
- resolution: {integrity: sha512-UhTd8u31dXadv0MopwGgNOBpUVROFKWVQgAg5N1ESyCz8AuBcMqm4AuTjrwgQKGDfoFuz02EuMRHQIw/frmYKQ==}
- cpu: [x64]
- os: [win32]
-
'@rollup/[email protected]':
resolution: {integrity: sha512-PrsWNQ8BuE00O3Xsx3ALh2Df8fAj9+cvvX9AIA6o4KpATR98c9mud4XtDWVvsEuyia5U4tVSTKygawyJkjm60w==}
cpu: [x64]
@@ -5847,34 +5744,43 @@ packages:
cpu: [x64]
os: [win32]
- '@vitest/[email protected]':
- resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-sPK//PHO+kAkScb8XITeB1bf7fsk85Km7+rt4eeuRR3VS1/crD47cmV5wicisJmjNdfeokTZwjMk4Mj2d58Mgg==}
+ peerDependencies:
+ '@vitest/browser': 4.1.2
+ vitest: 4.1.2
+ peerDependenciesMeta:
+ '@vitest/browser':
+ optional: true
+
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-gbu+7B0YgUJ2nkdsRJrFFW6X7NTP44WlhiclHniUhxADQJH5Szt9mZ9hWnJPJ8YwOK5zUOSSlSvyzRf0u1DSBQ==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-Ize4iQtEALHDttPRCmN+FKqOl2vxTiNUhzobQFFt/BM1lRUTG7zRCLOykG/6Vo4E4hnUdfVLo5/eqKPukcWW7Q==}
peerDependencies:
msw: ^2.4.9
- vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
msw:
optional: true
vite:
optional: true
- '@vitest/[email protected]':
- resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-dwQga8aejqeuB+TvXCMzSQemvV9hNEtDDpgUKDzOmNQayl2OG241PSWeJwKRH3CiC+sESrmoFd49rfnq7T4RnA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-Gr+FQan34CdiYAwpGJmQG8PgkyFVmARK8/xSijia3eTFgVfpcpztWLuP6FttGNfPLJhaZVP/euvujeNYar36OQ==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-g7yfUmxYS4mNxk31qbOYsSt2F4m1E02LFqO53Xpzg3zKMhLAPZAjjfyl9e6z7HrW6LvUdTwAQR3HHfLjpko16A==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-DU4fBnbVCJGNBwVA6xSToNXrkZNSiw59H8tcuUspVMsBDBST4nfvsPsEHDHGtWRRnqBERBQu7TrTKskmjqTXKA==}
- '@vitest/[email protected]':
- resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==}
+ '@vitest/[email protected]':
+ resolution: {integrity: sha512-xw2/TiX82lQHA06cgbqRKFb5lCAy3axQ4H4SoUFhUsg+wztiet+co86IAMDtF6Vm1hc7J6j09oh/rgDn+JdKIQ==}
resolution: {integrity: sha512-E+RyqY24KnyDXsCuQrI+mlcdW3ALND6U7Gqa/+bVwbcpcR3BRRIckFoz7Qyd4TTlnugtwuI7YgjbvsLmxb+yvg==}
@@ -6162,10 +6068,6 @@ packages:
resolution: {integrity: sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
@@ -6173,6 +6075,9 @@ packages:
resolution: {integrity: sha512-x1FCFnFifvYDDzTaLII71vG5uvDwgtmDTEVWAxrgeiR8VjMONcCXJx7E+USjDtHlwFmt9MysbqgF9b9Vjr6w+w==}
engines: {node: '>=4'}
+ resolution: {integrity: sha512-1fSfIwuDICFA4LKkCzRPO7F0hzFf0B7+Xqrl27ynQaa+Rh0e1Es0v6kWHPott3lU10AyAr7oKHa65OppjLn3Rg==}
+
resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
engines: {node: '>= 0.4'}
@@ -6337,10 +6242,6 @@ packages:
magicast:
optional: true
- resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
- engines: {node: '>=8'}
-
resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
engines: {node: '>= 0.4'}
@@ -6374,8 +6275,8 @@ packages:
resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==}
- resolution: {integrity: sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==}
+ resolution: {integrity: sha512-NUPRluOfOiTKBKvWPtSD4PhFvWCqOi0BGStNWs57X9js7XGTprSmFoz5F0tWhR4WPjNeR9jXqdC7/UpSJTnlRg==}
engines: {node: '>=18'}
@@ -6413,10 +6314,6 @@ packages:
resolution: {integrity: sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==}
- resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==}
- engines: {node: '>= 16'}
-
resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==}
@@ -6770,15 +6667,6 @@ packages:
supports-color:
optional: true
- resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}
- engines: {node: '>=6.0'}
- peerDependencies:
- supports-color: '*'
- peerDependenciesMeta:
- supports-color:
- optional: true
-
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
@@ -6815,10 +6703,6 @@ packages:
babel-plugin-macros:
optional: true
- resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==}
- engines: {node: '>=6'}
-
resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
@@ -7071,6 +6955,9 @@ packages:
resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==}
+ resolution: {integrity: sha512-5POEcUuZybH7IdmGsD8wlf0AI55wMecM9rVBTI/qEAy2c1kTOm3DjFYjrBdI2K3BaJjJYfYFeRtM0t9ssnRuxw==}
+
resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
engines: {node: '>= 0.4'}
@@ -7352,8 +7239,8 @@ packages:
resolution: {integrity: sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==}
+ resolution: {integrity: sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==}
engines: {node: '>=12.0.0'}
@@ -7449,14 +7336,6 @@ packages:
resolution: {integrity: sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==}
- resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
- peerDependencies:
- picomatch: ^3 || ^4
- peerDependenciesMeta:
- picomatch:
- optional: true
-
resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
engines: {node: '>=12.0.0'}
@@ -8199,6 +8078,10 @@ packages:
resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==}
engines: {node: '>=8'}
+ resolution: {integrity: sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==}
+ engines: {node: '>=8'}
+
resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
engines: {node: '>= 0.4'}
@@ -8402,12 +8285,12 @@ packages:
resolution: {integrity: sha512-biOj/6M5qdgx5TKjDnFT1ymSpM5tbd3ylwDtrQvFQSu0Z7bBYko2dF+W/aUkXUPuk6IVpRxk/3Q2sHOzGlS36g==}
+ resolution: {integrity: sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==}
+
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
- resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
-
resolution: {integrity: sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==}
hasBin: true
@@ -8776,9 +8659,6 @@ packages:
resolution: {integrity: sha512-HusN80C0ohtT9kOHQH7EuUaqzRQsnekpa+2ot8OzvW0iC08dq/YtM/7uKwwajldQsCrHyC8q9fz3t3L+TmDltA==}
- resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==}
-
resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==}
@@ -8810,12 +8690,12 @@ packages:
resolution: {integrity: sha512-wpGPwyg/xrSp4H4Db4xYSeAr6+cFQGHfspHzDUdYxswDnUW0L5Ov63UuJiSr8NMSpyaChO4u1n0MXUvVPtrN6A==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
-
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+ resolution: {integrity: sha512-E3ZJh4J3S9KfwdjZhe2afj6R9lGIN5Pher1pF39UGrXRqq/VDaGVIGN13BjHd2u8B61hArAGOnso7nBOouW3TQ==}
+
resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}
engines: {node: '>=10'}
@@ -9353,6 +9233,9 @@ packages:
resolution: {integrity: sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg==}
+ resolution: {integrity: sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==}
+
resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==}
@@ -9575,10 +9458,6 @@ packages:
resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
- resolution: {integrity: sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==}
- engines: {node: '>= 14.16'}
-
resolution: {integrity: sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==}
@@ -9649,10 +9528,6 @@ packages:
resolution: {integrity: sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==}
engines: {node: '>=8.6'}
- resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
- engines: {node: '>=12'}
-
resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==}
engines: {node: '>=12'}
@@ -10244,11 +10119,6 @@ packages:
resolution: {integrity: sha512-l0OE8wL34P4nJH/H2ffoaniAokM2qSmrtXHmlpvYr5AVVX8msAyW0l8NVJFDxlSK4u3Uh/f41cQheDVdnYijwQ==}
hasBin: true
- resolution: {integrity: sha512-w8GmOxZfBmKknvdXU1sdM9NHcoQejwF/4mNgj2JuEEdRaHwwF12K7e9eXn1nLZ07ad+du76mkVsyeb2rKGllsA==}
- engines: {node: '>=18.0.0', npm: '>=8.0.0'}
- hasBin: true
-
resolution: {integrity: sha512-yqjxruMGBQJ2gG4HtjZtAfXArHomazDHoFwFFmZZl0r7Pdo7qCIXKqKHZc8yeoMgzJJ+pO6pEEHa+V7uzWlrAQ==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'}
@@ -10529,8 +10399,8 @@ packages:
resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
engines: {node: '>= 0.8'}
- resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==}
+ resolution: {integrity: sha512-zUMPtQ/HBY3/50VbpkupYHbRroTRZJPRLvreamgErJVys0ceuzMkD44J/QjqhHjOzK42GQ3QZIeFG1OYfOtKqQ==}
resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
@@ -10636,9 +10506,6 @@ packages:
resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
engines: {node: '>=8'}
- resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==}
-
resolution: {integrity: sha512-sQQGZguPxe7/QYXJKtDpfzT2OAH9F8nyE2SOsVdTU793iiU33/dpaKgWaJEGJm8396Yy/6NvTLblgdHlueGLhA==}
engines: {node: '>=12.*'}
@@ -10799,31 +10666,16 @@ packages:
resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==}
- resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==}
-
resolution: {integrity: sha512-u9r3uZC0bdpGOXtlxUIdwf9pkmvhqJdrVCH9fapQtgy/OeTTMZ1nqH7agtvEfmGui6e1XxjcdrlxvxJvc3sMqw==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
- engines: {node: '>=12.0.0'}
-
resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
engines: {node: '>=12.0.0'}
- resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==}
- engines: {node: ^18.0.0 || >=20.0.0}
-
- resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==}
- engines: {node: '>=14.0.0'}
-
- resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==}
+ resolution: {integrity: sha512-Bf+ILmBgretUrdJxzXM0SgXLZ3XfiaUuOj/IKQHuTXip+05Xn+uyEYdVg0kYDipTBcLrCVyUzAPz7QmArb0mmw==}
engines: {node: '>=14.0.0'}
@@ -11196,11 +11048,6 @@ packages:
'@egjs/hammerjs': ^2.0.0
component-emitter: ^1.3.0 || ^2.0.0
- resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
- hasBin: true
-
resolution: {integrity: sha512-1mncVwJxy2C9ThLwz0+2GKZyEXuC3MyWtAAlNftlZZXZDP3AJt5FmwcMit/IGGaNZ8ZOB2BNO/HFUB+CpN0NQw==}
engines: {node: ^20.19.0 || >=22.12.0}
@@ -11241,26 +11088,33 @@ packages:
yaml:
optional: true
- resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==}
- engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0}
+ resolution: {integrity: sha512-xjR1dMTVHlFLh98JE3i/f/WePqJsah4A0FK9cc8Ehp9Udk0AZk6ccpIZhh1qJ/yxVWRZ+Q54ocnD8TXmkhspGg==}
+ engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0}
hasBin: true
peerDependencies:
'@edge-runtime/vm': '*'
- '@types/debug': ^4.1.12
- '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0
- '@vitest/browser': 3.2.4
- '@vitest/ui': 3.2.4
+ '@opentelemetry/api': ^1.9.0
+ '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0
+ '@vitest/browser-playwright': 4.1.2
+ '@vitest/browser-preview': 4.1.2
+ '@vitest/browser-webdriverio': 4.1.2
+ '@vitest/ui': 4.1.2
happy-dom: '*'
jsdom: '*'
+ vite: ^6.0.0 || ^7.0.0 || ^8.0.0
peerDependenciesMeta:
'@edge-runtime/vm':
optional: true
- '@types/debug':
+ '@opentelemetry/api':
optional: true
'@types/node':
optional: true
- '@vitest/browser':
+ '@vitest/browser-playwright':
+ optional: true
+ '@vitest/browser-preview':
+ optional: true
+ '@vitest/browser-webdriverio':
optional: true
'@vitest/ui':
optional: true
@@ -12724,6 +12578,8 @@ snapshots:
'@bcoe/[email protected]': {}
+ '@bcoe/[email protected]': {}
+
'@bundled-es-modules/[email protected]':
dependencies:
cookie: 0.7.2
@@ -13169,11 +13025,11 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@tanstack/react-virtual': 3.13.12([email protected]([email protected]))([email protected])
clsx: 2.1.1
node-emoji: 2.2.0
react: 19.2.4
react-dom: 19.2.4([email protected])
@@ -14171,10 +14027,10 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
dependencies:
'@next/[email protected]': {}
@@ -14864,14 +14720,14 @@ snapshots:
'@posthog/[email protected]': {}
optionalDependencies:
- prisma: 6.17.1([email protected])
typescript: 5.9.2
- '@prisma/[email protected]':
dependencies:
- c12: 3.1.0
+ c12: 3.1.0([email protected])
deepmerge-ts: 7.1.5
effect: 3.16.12
empathic: 2.0.0
@@ -15760,7 +15616,7 @@ snapshots:
react: 19.2.4
dependencies:
'@iarna/toml': 3.0.0
cheerio: 1.2.0
@@ -15769,7 +15625,7 @@ snapshots:
ini: 5.0.0
js-yaml: 4.1.1
lodash-es: 4.17.23
- release-it: 19.2.4(@types/[email protected])
+ release-it: 19.2.4(@types/[email protected])([email protected])
semver: 7.7.4
@@ -15796,144 +15652,78 @@ snapshots:
optionalDependencies:
rollup: 4.60.0
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
- '@rollup/[email protected]':
- optional: true
-
'@rollup/[email protected]':
optional: true
@@ -16031,7 +15821,7 @@ snapshots:
'@sentry/[email protected]': {}
dependencies:
'@opentelemetry/api': 1.9.0
'@opentelemetry/semantic-conventions': 1.40.0
@@ -16044,7 +15834,7 @@ snapshots:
'@sentry/react': 10.46.0([email protected])
'@sentry/vercel-edge': 10.46.0
'@sentry/webpack-plugin': 5.1.1([email protected])
rollup: 4.60.0
stacktrace-parser: 0.1.11
transitivePeerDependencies:
@@ -16698,7 +16488,7 @@ snapshots:
lz-string: 1.5.0
pretty-format: 27.5.1
dependencies:
'@adobe/css-tools': 4.4.0
'@babel/runtime': 7.24.7
@@ -16712,7 +16502,7 @@ snapshots:
'@jest/globals': 30.2.0
'@types/jest': 29.5.12
dependencies:
@@ -16733,11 +16523,11 @@ snapshots:
'@trpc/server': 11.13.4([email protected])
typescript: 5.9.2
dependencies:
'@trpc/client': 11.13.4(@trpc/[email protected]([email protected]))([email protected])
'@trpc/server': 11.13.4([email protected])
react: 19.2.4
react-dom: 19.2.4([email protected])
typescript: 5.9.2
@@ -16792,24 +16582,24 @@ snapshots:
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.29.2
+ '@babel/types': 7.29.0
'@types/babel__generator': 7.6.8
'@types/babel__template': 7.4.4
'@types/babel__traverse': 7.20.5
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.29.0
dependencies:
- '@babel/parser': 7.28.5
- '@babel/types': 7.28.5
+ '@babel/parser': 7.29.2
+ '@babel/types': 7.29.0
dependencies:
- '@babel/types': 7.28.5
+ '@babel/types': 7.29.0
'@types/[email protected]': {}
@@ -17345,48 +17135,61 @@ snapshots:
optional: true
- '@vitest/[email protected]':
+ dependencies:
+ '@bcoe/v8-coverage': 1.0.2
+ '@vitest/utils': 4.1.2
+ ast-v8-to-istanbul: 1.0.0
+ istanbul-lib-coverage: 3.2.2
+ istanbul-lib-report: 3.0.1
+ istanbul-reports: 3.2.0
+ magicast: 0.5.2
+ obug: 2.1.1
+ std-env: 4.0.0
+ tinyrainbow: 3.1.0
+
+ '@vitest/[email protected]':
dependencies:
+ '@standard-schema/spec': 1.1.0
'@types/chai': 5.2.2
- '@vitest/spy': 3.2.4
- '@vitest/utils': 3.2.4
- chai: 5.2.1
- tinyrainbow: 2.0.0
+ '@vitest/spy': 4.1.2
+ '@vitest/utils': 4.1.2
+ chai: 6.2.2
+ tinyrainbow: 3.1.0
dependencies:
- '@vitest/spy': 3.2.4
+ '@vitest/spy': 4.1.2
estree-walker: 3.0.3
- magic-string: 0.30.17
+ magic-string: 0.30.21
optionalDependencies:
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- tinyrainbow: 2.0.0
+ tinyrainbow: 3.1.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/utils': 3.2.4
+ '@vitest/utils': 4.1.2
pathe: 2.0.3
- strip-literal: 3.0.0
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 3.2.4
+ '@vitest/pretty-format': 4.1.2
+ '@vitest/utils': 4.1.2
magic-string: 0.30.21
pathe: 2.0.3
- '@vitest/[email protected]':
- dependencies:
- tinyspy: 4.0.3
+ '@vitest/[email protected]': {}
- '@vitest/[email protected]':
+ '@vitest/[email protected]':
dependencies:
- '@vitest/pretty-format': 3.2.4
- loupe: 3.1.4
- tinyrainbow: 2.0.0
+ '@vitest/pretty-format': 4.1.2
+ convert-source-map: 2.0.0
+ tinyrainbow: 3.1.0
dependencies:
@@ -17760,14 +17563,18 @@ snapshots:
-
dependencies:
tslib: 2.8.1
+ dependencies:
+ '@jridgewell/trace-mapping': 0.3.31
+ estree-walker: 3.0.3
+ js-tokens: 10.0.0
+
@@ -17951,7 +17758,7 @@ snapshots:
dependencies:
chokidar: 4.0.3
confbox: 0.2.4
@@ -17965,8 +17772,10 @@ snapshots:
perfect-debounce: 1.0.0
pkg-types: 2.3.0
rc9: 2.1.2
+ optionalDependencies:
+ magicast: 0.5.2
dependencies:
chokidar: 5.0.0
confbox: 0.2.4
@@ -17980,8 +17789,8 @@ snapshots:
perfect-debounce: 2.1.0
pkg-types: 2.3.0
rc9: 2.1.2
-
+ optionalDependencies:
+ magicast: 0.5.2
dependencies:
@@ -18012,13 +17821,7 @@ snapshots:
- dependencies:
- assertion-error: 2.0.1
- check-error: 2.1.1
- deep-eql: 5.0.2
- loupe: 3.1.4
- pathval: 2.0.1
dependencies:
@@ -18050,8 +17853,6 @@ snapshots:
-
dependencies:
boolbase: 1.0.0
@@ -18423,10 +18224,6 @@ snapshots:
dependencies:
ms: 2.1.3
- dependencies:
- ms: 2.1.3
-
dependencies:
ms: 2.1.3
@@ -18451,8 +18248,6 @@ snapshots:
optionalDependencies:
babel-plugin-macros: 3.1.0
-
@@ -18736,6 +18531,8 @@ snapshots:
+
dependencies:
es-errors: 1.3.0
@@ -18877,7 +18674,7 @@ snapshots:
tinyglobby: 0.2.15
unrs-resolver: 1.11.1
optionalDependencies:
- eslint-plugin-import: 2.32.0([email protected])([email protected]([email protected]))
transitivePeerDependencies:
- supports-color
@@ -19163,7 +18960,7 @@ snapshots:
dependencies:
@@ -19294,14 +19091,6 @@ snapshots:
dependencies:
bser: 2.1.1
- optionalDependencies:
- picomatch: 4.0.3
-
- optionalDependencies:
- picomatch: 4.0.3
-
optionalDependencies:
picomatch: 4.0.4
@@ -20115,6 +19904,11 @@ snapshots:
html-escaper: 2.0.2
istanbul-lib-report: 3.0.1
+ dependencies:
+ html-escaper: 2.0.2
+ istanbul-lib-report: 3.0.1
+
dependencies:
define-data-property: 1.1.4
@@ -20507,9 +20301,9 @@ snapshots:
optionalDependencies:
- '@babel/core': 7.28.5
+ '@babel/core': 7.29.0
'@babel/template': 7.28.6
'@types/react': 19.2.14
react: 19.2.4
@@ -20518,9 +20312,9 @@ snapshots:
dependencies:
base64-js: 1.5.1
dependencies:
@@ -20917,8 +20711,6 @@ snapshots:
-
@@ -20941,14 +20733,16 @@ snapshots:
- dependencies:
- '@jridgewell/sourcemap-codec': 1.5.4
-
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5
+ dependencies:
+ '@babel/parser': 7.29.2
+ '@babel/types': 7.29.0
+ source-map-js: 1.2.1
+
dependencies:
semver: 7.7.4
@@ -21557,13 +21351,13 @@ snapshots:
dependencies:
type-fest: 2.19.0
dependencies:
'@babel/runtime': 7.28.4
'@panva/hkdf': 1.2.1
cookie: 0.7.2
jose: 4.15.9
oauth: 0.9.15
openid-client: 5.7.1
preact: 10.28.2
@@ -21574,9 +21368,9 @@ snapshots:
optionalDependencies:
nodemailer: 7.0.11
dependencies:
react: 19.2.4
tslib: 2.8.1
@@ -21586,7 +21380,7 @@ snapshots:
react: 19.2.4
react-dom: 19.2.4([email protected])
dependencies:
'@next/env': 16.2.1
'@swc/helpers': 0.5.15
@@ -21595,7 +21389,7 @@ snapshots:
postcss: 8.4.31
react: 19.2.4
react-dom: 19.2.4([email protected])
optionalDependencies:
'@next/swc-darwin-arm64': 16.2.1
'@next/swc-darwin-x64': 16.2.1
@@ -21739,6 +21533,8 @@ snapshots:
+
@@ -21987,8 +21783,6 @@ snapshots:
-
dependencies:
through: 2.3.8
@@ -22060,8 +21854,6 @@ snapshots:
-
@@ -22191,9 +21983,9 @@ snapshots:
clsx: 2.1.1
react: 19.2.4
dependencies:
- '@prisma/config': 6.17.1
+ '@prisma/config': 6.17.1([email protected])
'@prisma/engines': 6.17.1
optionalDependencies:
typescript: 5.9.2
@@ -22532,13 +22324,13 @@ snapshots:
gopd: 1.2.0
set-function-name: 2.0.2
dependencies:
'@nodeutils/defaults-deep': 1.1.0
'@octokit/rest': 22.0.1
'@phun-ky/typeof': 2.0.3
async-retry: 1.3.3
- c12: 3.3.3
+ c12: 3.3.3([email protected])
ci-info: 4.4.0
eta: 4.5.0
git-url-parse: 16.1.0
@@ -22678,34 +22470,6 @@ snapshots:
dependencies:
glob: 10.5.0
- dependencies:
- '@types/estree': 1.0.8
- optionalDependencies:
- '@rollup/rollup-android-arm-eabi': 4.53.3
- '@rollup/rollup-android-arm64': 4.53.3
- '@rollup/rollup-darwin-arm64': 4.53.3
- '@rollup/rollup-darwin-x64': 4.53.3
- '@rollup/rollup-freebsd-arm64': 4.53.3
- '@rollup/rollup-freebsd-x64': 4.53.3
- '@rollup/rollup-linux-arm-gnueabihf': 4.53.3
- '@rollup/rollup-linux-arm-musleabihf': 4.53.3
- '@rollup/rollup-linux-arm64-gnu': 4.53.3
- '@rollup/rollup-linux-arm64-musl': 4.53.3
- '@rollup/rollup-linux-loong64-gnu': 4.53.3
- '@rollup/rollup-linux-ppc64-gnu': 4.53.3
- '@rollup/rollup-linux-riscv64-gnu': 4.53.3
- '@rollup/rollup-linux-riscv64-musl': 4.53.3
- '@rollup/rollup-linux-s390x-gnu': 4.53.3
- '@rollup/rollup-linux-x64-gnu': 4.53.3
- '@rollup/rollup-linux-x64-musl': 4.53.3
- '@rollup/rollup-openharmony-arm64': 4.53.3
- '@rollup/rollup-win32-arm64-msvc': 4.53.3
- '@rollup/rollup-win32-ia32-msvc': 4.53.3
- '@rollup/rollup-win32-x64-gnu': 4.53.3
- '@rollup/rollup-win32-x64-msvc': 4.53.3
- fsevents: 2.3.3
-
dependencies:
'@types/estree': 1.0.8
@@ -23055,7 +22819,7 @@ snapshots:
@@ -23186,10 +22950,6 @@ snapshots:
- dependencies:
- js-tokens: 9.0.1
-
dependencies:
'@types/node': 24.3.0
@@ -23215,12 +22975,12 @@ snapshots:
dependencies:
inline-style-parser: 0.2.7
dependencies:
client-only: 0.0.1
react: 19.2.4
optionalDependencies:
- '@babel/core': 7.28.5
+ '@babel/core': 7.29.0
babel-plugin-macros: 3.1.0
@@ -23338,25 +23098,14 @@ snapshots:
-
- dependencies:
- fdir: 6.5.0([email protected])
- picomatch: 4.0.3
-
dependencies:
fdir: 6.5.0([email protected])
picomatch: 4.0.4
-
-
@@ -23767,34 +23516,13 @@ snapshots:
'@egjs/hammerjs': 2.0.17
component-emitter: 1.3.1
- dependencies:
- cac: 6.7.14
- debug: 4.4.3
- es-module-lexer: 1.7.0
- pathe: 2.0.3
- transitivePeerDependencies:
- - '@types/node'
- - jiti
- - less
- - lightningcss
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
- - tsx
- - yaml
-
dependencies:
esbuild: 0.25.7
- fdir: 6.4.6([email protected])
- picomatch: 4.0.3
- postcss: 8.5.6
- rollup: 4.53.3
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.4
+ postcss: 8.5.8
+ rollup: 4.60.0
tinyglobby: 0.2.15
optionalDependencies:
'@types/node': 24.3.0
@@ -23805,48 +23533,34 @@ snapshots:
tsx: 4.20.5
yaml: 2.8.1
- dependencies:
- '@types/chai': 5.2.2
- '@vitest/expect': 3.2.4
- '@vitest/pretty-format': 3.2.4
- '@vitest/runner': 3.2.4
- '@vitest/snapshot': 3.2.4
- '@vitest/spy': 3.2.4
- '@vitest/utils': 3.2.4
- chai: 5.2.1
- debug: 4.4.1
- expect-type: 1.2.2
- magic-string: 0.30.17
+ dependencies:
+ '@vitest/expect': 4.1.2
+ '@vitest/pretty-format': 4.1.2
+ '@vitest/runner': 4.1.2
+ '@vitest/snapshot': 4.1.2
+ '@vitest/spy': 4.1.2
+ '@vitest/utils': 4.1.2
+ es-module-lexer: 2.0.0
+ expect-type: 1.3.0
+ magic-string: 0.30.21
+ obug: 2.1.1
pathe: 2.0.3
- picomatch: 4.0.3
- std-env: 3.9.0
+ picomatch: 4.0.4
+ std-env: 4.0.0
tinybench: 2.9.0
- tinyexec: 0.3.2
- tinyglobby: 0.2.14
- tinypool: 1.1.1
- tinyrainbow: 2.0.0
+ tinyexec: 1.0.4
+ tinyglobby: 0.2.15
+ tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
optionalDependencies:
- '@types/debug': 4.1.12
+ '@opentelemetry/api': 1.9.0
'@types/node': 24.3.0
jsdom: 26.1.0
transitivePeerDependencies:
- - jiti
- - less
- - lightningcss
- msw
- - sass
- - sass-embedded
- - stylus
- - sugarss
- - supports-color
- - terser
- - tsx
- - yaml
dependencies:
diff --git a/worker/AGENTS.md b/worker/AGENTS.md
index f2b21af813..6fc8178b60 100644
--- a/worker/AGENTS.md
+++ b/worker/AGENTS.md
@@ -56,8 +56,8 @@ Use root [AGENTS.md](../AGENTS.md) for monorepo-level rules.
- Lint: `pnpm --filter worker run lint`
- Lint fix: `pnpm --filter worker run lint:fix`
- Typecheck: `pnpm --filter worker run typecheck`
-- Tests: `pnpm --filter worker run test -- <file-or-pattern>`
-- Coverage: `pnpm --filter worker run coverage`
+- Tests: `pnpm --filter worker run test <file-or-pattern>`
+- Coverage: `pnpm --filter worker run coverage [file-or-pattern]`
- Build: `pnpm --filter worker run build`
## Queue Playbook (Add/Change Queue Processor)
diff --git a/worker/package.json b/worker/package.json
index e041e28eb3..5b46813f07 100644
--- a/worker/package.json
+++ b/worker/package.json
@@ -12,9 +12,9 @@
"node": "24"
},
"scripts": {
- "test": "dotenv -e ../.env -- vitest run --pool=forks --poolOptions.forks.singleFork=true",
- "test:exclude-llm-connections": "dotenv -e ../.env -- vitest run --pool=forks --poolOptions.forks.singleFork=true --exclude '**/llmConnections.test.ts'",
- "test:llm-connections-only": "dotenv -e ../.env -- vitest run --pool=forks --poolOptions.forks.singleFork=true llmConnections.test.ts",
+ "test": "vitest run",
+ "test:exclude-llm-connections": "vitest run --exclude '**/llmConnections.test.ts'",
+ "test:llm-connections-only": "vitest run llmConnections.test.ts",
"coverage": "vitest run --coverage",
"start": "dotenv -e ../.env -- node dist/index.js",
"build": "tsc",
@@ -78,6 +78,7 @@
"@types/pg": "^8.11.10",
"@types/uuid": "^9.0.8",
"@typescript/native-preview": "7.0.0-dev.20260122.3",
+ "@vitest/coverage-v8": "^4.1.2",
"eslint": "^9.39.2",
"msw": "^2.6.5",
"prettier": "^3.8.1",
@@ -85,7 +86,7 @@
"tsc-watch": "^6.2.0",
"tsx": "^4.20.5",
"typescript": "^5.7.2",
- "vitest": "^3.2.4",
+ "vitest": "^4.1.2",
"wait-for-expect": "^3.0.2"
}
}
diff --git a/worker/src/features/evaluation/observationEval/__tests__/filterEvaluation.test.ts b/worker/src/features/evaluation/observationEval/__tests__/filterEvaluation.test.ts
index a63eebbfd8..ca4cfbab7a 100644
--- a/worker/src/features/evaluation/observationEval/__tests__/filterEvaluation.test.ts
+++ b/worker/src/features/evaluation/observationEval/__tests__/filterEvaluation.test.ts
@@ -31,7 +31,7 @@ describe("Filter Evaluation for Observation Evals", () => {
/**
* Helper to test if an observation matches a filter config.
- * Returns true if createJobExecution was called (meaning filter matched).
+ * Returns true if upsertJobExecution was called (meaning filter matched).
*/
async function testFilterMatch(
observation: ObservationForEval,
@@ -51,10 +51,7 @@ describe("Filter Evaluation for Observation Evals", () => {
schedulerDeps: deps,
});
- return (
- (deps.upsertJobExecution as ReturnType<typeof vi.fn>).mock.calls.length >
- 0
- );
+ return deps.upsertJobExecution.mock.calls.length > 0;
}
describe("string filters", () => {
@@ -817,7 +814,7 @@ describe("Filter Evaluation for Observation Evals", () => {
describe("experiment target object filtering", () => {
/**
* Helper to test experiment target object filtering.
- * Returns true if createJobExecution was called (meaning filter matched).
+ * Returns true if upsertJobExecution was called (meaning filter matched).
*/
async function testExperimentFilterMatch(
observation: ObservationForEval,
@@ -838,10 +835,7 @@ describe("Filter Evaluation for Observation Evals", () => {
schedulerDeps: deps,
});
- return (
- (deps.upsertJobExecution as ReturnType<typeof vi.fn>).mock.calls
- .length > 0
- );
+ return deps.upsertJobExecution.mock.calls.length > 0;
}
it("should match when span_id equals experiment_item_root_span_id", async () => {
diff --git a/worker/src/features/evaluation/observationEval/__tests__/fixtures.ts b/worker/src/features/evaluation/observationEval/__tests__/fixtures.ts
index 145c4fb930..02de3d0f58 100644
--- a/worker/src/features/evaluation/observationEval/__tests__/fixtures.ts
+++ b/worker/src/features/evaluation/observationEval/__tests__/fixtures.ts
@@ -1,4 +1,4 @@
-import { vi } from "vitest";
+import { vi, type Mock } from "vitest";
import { randomUUID } from "crypto";
import { type Prisma } from "@langfuse/shared/src/db";
import { type ObservationForEval, EvalTargetObject } from "@langfuse/shared";
@@ -12,6 +12,20 @@ import {
createMockEvalExecutionDeps,
} from "../../evalExecutionDeps";
+type MockSchedulerDeps = ObservationEvalSchedulerDeps & {
+ upsertJobExecution: Mock<ObservationEvalSchedulerDeps["upsertJobExecution"]>;
+ uploadObservationToS3: Mock<
+ ObservationEvalSchedulerDeps["uploadObservationToS3"]
+ >;
+ enqueueEvalJob: Mock<ObservationEvalSchedulerDeps["enqueueEvalJob"]>;
+};
+
+type MockProcessorDeps = ObservationEvalProcessorDeps & {
+ downloadObservationFromS3: Mock<
+ ObservationEvalProcessorDeps["downloadObservationFromS3"]
+ >;
+};
+
/**
* Creates a test ObservationForEval with sensible defaults.
* All fields can be overridden.
@@ -111,20 +125,31 @@ export function createTestEvalConfig(
*/
export function createMockSchedulerDeps(
overrides: Partial<{
- createJobExecution: ReturnType<typeof vi.fn>;
- uploadObservationToS3: ReturnType<typeof vi.fn>;
- enqueueEvalJob: ReturnType<typeof vi.fn>;
+ upsertJobExecution: Mock<
+ ObservationEvalSchedulerDeps["upsertJobExecution"]
+ >;
+ uploadObservationToS3: Mock<
+ ObservationEvalSchedulerDeps["uploadObservationToS3"]
+ >;
+ enqueueEvalJob: Mock<ObservationEvalSchedulerDeps["enqueueEvalJob"]>;
}> = {},
-): ObservationEvalSchedulerDeps {
+): MockSchedulerDeps {
return {
upsertJobExecution:
- overrides.createJobExecution ??
- vi.fn().mockResolvedValue({ id: `job-exec-${randomUUID()}` }),
+ overrides.upsertJobExecution ??
+ vi
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
+ .mockResolvedValue({ id: `job-exec-${randomUUID()}` }),
uploadObservationToS3:
overrides.uploadObservationToS3 ??
- vi.fn().mockResolvedValue(`observations/test/obs-123.json`),
+ vi
+ .fn<ObservationEvalSchedulerDeps["uploadObservationToS3"]>()
+ .mockResolvedValue(`observations/test/obs-123.json`),
enqueueEvalJob:
- overrides.enqueueEvalJob ?? vi.fn().mockResolvedValue(undefined),
+ overrides.enqueueEvalJob ??
+ vi
+ .fn<ObservationEvalSchedulerDeps["enqueueEvalJob"]>()
+ .mockResolvedValue(undefined),
};
}
@@ -133,15 +158,19 @@ export function createMockSchedulerDeps(
*/
export function createMockProcessorDeps(
overrides: Partial<{
- downloadObservationFromS3: ReturnType<typeof vi.fn>;
+ downloadObservationFromS3: Mock<
+ ObservationEvalProcessorDeps["downloadObservationFromS3"]
+ >;
}> = {},
-): ObservationEvalProcessorDeps {
+): MockProcessorDeps {
const defaultObservation = createTestObservation();
return {
downloadObservationFromS3:
overrides.downloadObservationFromS3 ??
- vi.fn().mockResolvedValue(JSON.stringify(defaultObservation)),
+ vi
+ .fn<ObservationEvalProcessorDeps["downloadObservationFromS3"]>()
+ .mockResolvedValue(JSON.stringify(defaultObservation)),
};
}
@@ -297,28 +326,34 @@ export function createFullyMockedEvalPipeline(
const uploadedData = new Map<string, unknown>();
const observation = config.observation ?? createTestObservation();
- const schedulerDeps: ObservationEvalSchedulerDeps = {
+ const schedulerDeps: MockSchedulerDeps = {
upsertJobExecution: vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
.mockResolvedValue({ id: `job-exec-${randomUUID()}` }),
- uploadObservationToS3: vi.fn().mockImplementation(async (params) => {
- const path =
- config.s3UploadPath ??
- `evals/${params.projectId}/observations/${params.observationId}.json`;
- uploadedData.set(path, params.data);
- return path;
- }),
- enqueueEvalJob: vi.fn().mockResolvedValue(undefined),
+ uploadObservationToS3: vi
+ .fn<ObservationEvalSchedulerDeps["uploadObservationToS3"]>()
+ .mockImplementation(async (params) => {
+ const path =
+ config.s3UploadPath ??
+ `evals/${params.projectId}/observations/${params.observationId}.json`;
+ uploadedData.set(path, params.data);
+ return path;
+ }),
+ enqueueEvalJob: vi
+ .fn<ObservationEvalSchedulerDeps["enqueueEvalJob"]>()
+ .mockResolvedValue(undefined),
};
- const processorDeps: ObservationEvalProcessorDeps = {
- downloadObservationFromS3: vi.fn().mockImplementation(async (path) => {
- const data = uploadedData.get(path);
- if (data) {
- return JSON.stringify(data);
- }
- return JSON.stringify(observation);
- }),
+ const processorDeps: MockProcessorDeps = {
+ downloadObservationFromS3: vi
+ .fn<ObservationEvalProcessorDeps["downloadObservationFromS3"]>()
+ .mockImplementation(async (path) => {
+ const data = uploadedData.get(path);
+ if (data) {
+ return JSON.stringify(data);
+ }
+ return JSON.stringify(observation);
+ }),
};
const executionDeps: EvalExecutionDeps = createMockEvalExecutionDeps({
diff --git a/worker/src/features/evaluation/observationEval/__tests__/observationEval.e2e.test.ts b/worker/src/features/evaluation/observationEval/__tests__/observationEval.e2e.test.ts
index 4889eed584..7567b0f162 100644
--- a/worker/src/features/evaluation/observationEval/__tests__/observationEval.e2e.test.ts
+++ b/worker/src/features/evaluation/observationEval/__tests__/observationEval.e2e.test.ts
@@ -3,6 +3,7 @@ import { JobExecutionStatus, type Prisma } from "@prisma/client";
import { randomUUID } from "crypto";
import { scheduleObservationEvals } from "../scheduleObservationEvals";
import { processObservationEval } from "../observationEvalProcessor";
+import { type ObservationEvalSchedulerDeps } from "../types";
import {
createTestObservation,
createTestEvalConfig,
@@ -95,7 +96,7 @@ describe("Observation Eval E2E Pipeline", () => {
// Track job execution ID
let capturedJobExecutionId: string | undefined;
const mockCreateJobExecution = vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
.mockImplementation(async (params) => {
capturedJobExecutionId = `job-exec-${randomUUID()}`;
return { id: capturedJobExecutionId };
@@ -320,7 +321,7 @@ describe("Observation Eval E2E Pipeline", () => {
const pipeline = createFullyMockedEvalPipeline({ observation });
pipeline.schedulerDeps.upsertJobExecution = vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
.mockResolvedValueOnce({ id: "job-1" })
.mockResolvedValueOnce({ id: "job-2" })
.mockResolvedValueOnce({ id: "job-3" });
diff --git a/worker/src/features/evaluation/observationEval/__tests__/observationEvalProcessor.test.ts b/worker/src/features/evaluation/observationEval/__tests__/observationEvalProcessor.test.ts
index 0918e31b1d..d8994c793b 100644
--- a/worker/src/features/evaluation/observationEval/__tests__/observationEvalProcessor.test.ts
+++ b/worker/src/features/evaluation/observationEval/__tests__/observationEvalProcessor.test.ts
@@ -187,7 +187,7 @@ describe("processObservationEval", () => {
const deps: ObservationEvalProcessorDeps = {
downloadObservationFromS3: vi
- .fn()
+ .fn<ObservationEvalProcessorDeps["downloadObservationFromS3"]>()
.mockRejectedValue(new Error("S3 connection failed")),
};
@@ -214,7 +214,7 @@ describe("processObservationEval", () => {
const deps: ObservationEvalProcessorDeps = {
downloadObservationFromS3: vi
- .fn()
+ .fn<ObservationEvalProcessorDeps["downloadObservationFromS3"]>()
.mockResolvedValue("not valid json {"),
};
@@ -243,7 +243,7 @@ describe("processObservationEval", () => {
const invalidObservation = { id: "obs-123", someField: "value" };
const deps: ObservationEvalProcessorDeps = {
downloadObservationFromS3: vi
- .fn()
+ .fn<ObservationEvalProcessorDeps["downloadObservationFromS3"]>()
.mockResolvedValue(JSON.stringify(invalidObservation)),
};
diff --git a/worker/src/features/evaluation/observationEval/__tests__/scheduleObservationEvals.test.ts b/worker/src/features/evaluation/observationEval/__tests__/scheduleObservationEvals.test.ts
index c83a8f86b0..07c1c1560b 100644
--- a/worker/src/features/evaluation/observationEval/__tests__/scheduleObservationEvals.test.ts
+++ b/worker/src/features/evaluation/observationEval/__tests__/scheduleObservationEvals.test.ts
@@ -91,11 +91,15 @@ describe("scheduleObservationEvals", () => {
});
const createMockSchedulerDeps = (): ObservationEvalSchedulerDeps => ({
- upsertJobExecution: vi.fn().mockResolvedValue({ id: "job-exec-1" }),
+ upsertJobExecution: vi
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
+ .mockResolvedValue({ id: "job-exec-1" }),
uploadObservationToS3: vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["uploadObservationToS3"]>()
.mockResolvedValue("observations/project-789/obs-123.json"),
- enqueueEvalJob: vi.fn().mockResolvedValue(undefined),
+ enqueueEvalJob: vi
+ .fn<ObservationEvalSchedulerDeps["enqueueEvalJob"]>()
+ .mockResolvedValue(undefined),
});
beforeEach(() => {
@@ -317,7 +321,7 @@ describe("scheduleObservationEvals", () => {
it("should enqueue job with correct parameters", async () => {
const schedulerDeps = createMockSchedulerDeps();
schedulerDeps.uploadObservationToS3 = vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["uploadObservationToS3"]>()
.mockResolvedValue("observations/project-789/obs-123.json");
const observation = createMockObservation();
const config = createMockConfig();
@@ -344,7 +348,7 @@ describe("scheduleObservationEvals", () => {
it("should process multiple matching configs independently", async () => {
const schedulerDeps = createMockSchedulerDeps();
schedulerDeps.upsertJobExecution = vi
- .fn()
+ .fn<ObservationEvalSchedulerDeps["upsertJobExecution"]>()
.mockResolvedValueOnce({ id: "job-exec-1" })
.mockResolvedValueOnce({ id: "job-exec-2" })
.mockResolvedValueOnce({ id: "job-exec-3" });
diff --git a/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts b/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts
index 8e4eab9cb8..435109c64d 100644
--- a/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts
+++ b/worker/src/services/ClickhouseWriter/ClickhouseWriter.unit.test.ts
@@ -35,26 +35,30 @@ vi.mock("../../env", async (importOriginal) => {
};
});
-const clickhouseClientMock = {
- insert: vi.fn(),
-};
-
describe("ClickhouseWriter", () => {
+ let clickhouseClientMock: {
+ insert: ReturnType<typeof vi.fn>;
+ };
let writer: ClickhouseWriter;
beforeEach(() => {
+ vi.clearAllMocks();
+ clickhouseClientMock = {
+ insert: vi.fn(),
+ };
vi.useFakeTimers();
writer = ClickhouseWriter.getInstance(clickhouseClientMock);
});
afterEach(async () => {
- vi.restoreAllMocks();
vi.useRealTimers();
// Reset singleton instance
await writer.shutdown();
ClickhouseWriter.instance = null;
+ vi.restoreAllMocks();
+ vi.clearAllMocks();
});
it("should be a singleton", () => {
diff --git a/worker/vitest.config.ts b/worker/vitest.config.ts
index 1d2f6a01fb..5bfa9abbeb 100644
--- a/worker/vitest.config.ts
+++ b/worker/vitest.config.ts
@@ -1,21 +1,23 @@
import { config } from "dotenv";
import { defineConfig } from "vitest/config";
-// Load ../.env to match the CLI: dotenv -e ../.env
+// Load ../.env so direct Vitest runs and package scripts use the same worker env.
config({ path: "../.env" });
export default defineConfig({
test: {
+ dir: "./src",
pool: "forks",
- poolOptions: {
- forks: {
- singleFork: true,
- },
- },
+ maxWorkers: 1,
server: {
deps: {
inline: ["@langfuse/shared"],
},
},
+ coverage: {
+ provider: "v8",
+ include: ["src/**/*.ts"],
+ exclude: ["src/**/*.test.ts", "src/**/__tests__/**", "src/scripts/**"],
+ },
},
});