czekis.
02/12/2025, 8:54 AMassert_1.js) generated in my test setup.
Error: Unsupported file type: C:<path_to_my_custom_assert_file>\js\assert_1.js
at processFileReference (<path_to_local_promptfoo>\promptfoo\src\assertions\utils.ts:67:11)
at runAssertion (<path_to_local_promptfoo>\promptfoo\src\assertions\index.ts:183:45)
at <path_to_local_promptfoo>promptfoo\src\assertions\index.ts:358:28
at <path_to_local_promptfoo>\promptfoo\node_modules\async\dist\async.js:151:38
at replenish (<path_to_local_promptfoo>\promptfoo\node_modules\async\dist\async.js:447:21)
at <path_to_local_promptfoo>\promptfoo\node_modules\async\dist\async.js:452:13
at Object.eachOfLimit (<path_to_local_promptfoo>promptfoo\node_modules\async\dist\async.js:478:36)
at <path_to_local_promptfoo>\promptfoo\node_modules\async\dist\async.js:220:25
at new Promise (<anonymous>)
at Object.awaitable (<path_to_local_promptfoo>\promptfoo\node_modules\async\dist\async.js:215:20)
I created my custom assertions mechanism so i use js files like this:
- assert:
- type: javascript
value: file:///<path_to_file>/js/assert_1.js I recently updated my app from 0.95.0 to 0.104.0 and it stopped working. I use Node 20.18.3michaelmichaelmichael
02/12/2025, 11:12 PMczekis.
02/13/2025, 8:59 AMczekis.
02/13/2025, 8:59 AMmichaelmichaelmichael
02/17/2025, 6:31 AM