( orgId: string, projectId: string = 'test-project', folderPath: string = './src' )
| 501 | * @param folderPath - Path to folder containing files to index (relative, absolute, or ~/path) |
| 502 | */ |
| 503 | export async function run( |
| 504 | orgId: string, |
| 505 | projectId: string = 'test-project', |
| 506 | folderPath: string = './src' |
| 507 | ): Promise<void> { |
| 508 | const { authToken, baseUrl, organizationId } = await getAuthConfig(orgId); |
| 509 | |
| 510 | const gitBranch = DEFAULT_GIT_BRANCH; |
| 511 | |
| 512 | // First, index files |
| 513 | await indexFiles(organizationId, projectId, gitBranch, baseUrl, authToken, folderPath); |
| 514 | |
| 515 | // Then, perform searches |
| 516 | await runSearches(organizationId, projectId, baseUrl, authToken); |
| 517 | |
| 518 | console.log('\n✨ Test complete!'); |
| 519 | } |
nothing calls this directly
no test coverage detected