Skip to content

Commit

Permalink
Merge pull request #45 from slackhq/sg-add-docs
Browse files Browse the repository at this point in the history
added docs
  • Loading branch information
sgorbach0v authored Aug 20, 2024
2 parents edfc74e + 9ce1393 commit 01d2b73
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/convert-test-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import {
// Define the function type for LLM call
export type LLMCallFunction = (prompt: string) => Promise<string>;

Check warning on line 13 in src/convert-test-files.ts

View workflow job for this annotation

GitHub Actions / build

'prompt' is defined but never used

/**
* Converts test files and processes them using the specified parameters.
*
* This function takes an array of test file paths and performs a series of operations
* including setting up the Jest environment, setting up configurations, and output paths.
* It also utilizes an LLM (Large Language Model) call function to process the test files.
* The results of the conversion are stored in the specified output directory.
*/
export const convertTestFiles = async ({
filePaths,
logLevel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
return shallow(<ReactComponent {...props} />);
}
* Assumption: only one method is used: mount or shallow, but not both.
* TODO: fix this by collecting all the matched queries and return an array. See removeMountAndShallow.jest.tsx with all tests active
* Feature: fix this by collecting all the matched queries for shallowCall and mountCall. Now it handles cases with either mount shallow, but not both
*/

import { JSCodeshift, Collection, CallExpression } from 'jscodeshift';
Expand Down

0 comments on commit 01d2b73

Please sign in to comment.