Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added docs #45

Merged
merged 3 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/convert-test-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,16 @@
} from './support/config';

// 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
Loading