File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ The action is tested end-to-end on every PR using `test-prompts/`:
96965 . Verifies action can execute, parse configs, and post results
9797
9898** Test Files:**
99- - ` test-prompts/promptfooconfig.yaml ` - Minimal config (gpt-4o-mini , 1 test)
99+ - ` test-prompts/promptfooconfig.yaml ` - Minimal config (echo provider , 1 test)
100100- ` test-prompts/test-prompt.txt ` - Simple prompt with variable
101101- ` test-prompts/README.md ` - Documentation
102102
@@ -478,10 +478,10 @@ git add lib/
478478
479479## Additional Resources
480480
481- - ** Promptfoo Documentation:** https://www.promptfoo.dev/docs/
482- - ** GitHub Actions Toolkit:** https://github.com/actions/toolkit
483- - ** Vitest Documentation:** https://vitest.dev/
484- - ** Biome Documentation:** https://biomejs.dev/
481+ - [ Promptfoo Documentation]( https://www.promptfoo.dev/docs/)
482+ - [ GitHub Actions Toolkit]( https://github.com/actions/toolkit)
483+ - [ Vitest Documentation]( https://vitest.dev/)
484+ - [ Biome Documentation]( https://biomejs.dev/)
485485
486486## Debugging Tips
487487
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const actualFs = await vi.importActual<typeof import('fs')>('fs');
2222type MockOctokit = {
2323 rest : {
2424 issues : {
25- createComment : Mock ;
25+ createComment : Mock < ( ) => Promise < unknown > > ;
2626 } ;
2727 } ;
2828} ;
@@ -53,7 +53,7 @@ vi.mock('simple-git', () => ({
5353} ) ) ;
5454
5555// Mock auth utilities
56- vi . mock ( '../src/utils/auth' ) ;
56+ vi . mock ( '../src/utils/auth.js ' ) ;
5757
5858import { handleError , run } from '../src/main.js' ;
5959import * as auth from '../src/utils/auth.js' ;
Original file line number Diff line number Diff line change @@ -48,15 +48,18 @@ vi.mock('fs', async () => {
4848 } ;
4949} ) ;
5050
51- const mockCore = core as { info : Mock ; debug : Mock } ;
51+ const mockCore = core as {
52+ info : Mock < ( message : string ) => void > ;
53+ debug : Mock < ( message : string ) => void > ;
54+ } ;
5255const mockFs = fs as unknown as {
53- existsSync : Mock ;
54- mkdirSync : Mock ;
55- readdirSync : Mock ;
56- statSync : Mock ;
57- unlinkSync : Mock ;
58- rmdirSync : Mock ;
59- writeFileSync : Mock ;
56+ existsSync : Mock < ( path : string ) => boolean > ;
57+ mkdirSync : Mock < ( path : string , options ?: unknown ) => void > ;
58+ readdirSync : Mock < ( path : string ) => string [ ] > ;
59+ statSync : Mock < ( path : string ) => { mtime : Date ; size : number } > ;
60+ unlinkSync : Mock < ( path : string ) => void > ;
61+ rmdirSync : Mock < ( path : string ) => void > ;
62+ writeFileSync : Mock < ( path : string , data : string ) => void > ;
6063} ;
6164
6265describe ( 'Cache Utilities' , ( ) => {
Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://biomejs.dev/schemas/2.3.13 /schema.json" ,
2+ "$schema" : " https://biomejs.dev/schemas/2.3.12 /schema.json" ,
33 "files" : {
44 "maxSize" : 2097152 ,
55 "ignoreUnknown" : true ,
99 " __tests__/**/*.ts" ,
1010 " *.js" ,
1111 " *.ts"
12- ],
13- "experimentalScannerIgnores" : [
14- " node_modules" ,
15- " dist/**" ,
16- " build" ,
17- " coverage" ,
18- " lib/**" ,
19- " .next" ,
20- " *.min.js"
2112 ]
2213 },
14+ "vcs" : {
15+ "enabled" : true ,
16+ "clientKind" : " git" ,
17+ "useIgnoreFile" : true
18+ },
2319 "linter" : {
2420 "enabled" : true ,
2521 "rules" : {
3935 "useNodejsImportProtocol" : " off"
4036 },
4137 "suspicious" : {
42- "noExplicitAny" : " off "
38+ "noExplicitAny" : " error "
4339 }
4440 }
4541 },
5955 "jsxQuoteStyle" : " double" ,
6056 "arrowParentheses" : " always"
6157 }
62- },
63- "vcs" : {
64- "enabled" : true ,
65- "clientKind" : " git" ,
66- "useIgnoreFile" : true
6758 }
6859}
You can’t perform that action at this time.
0 commit comments