jest-test-gen
jest-test-gen copied to clipboard
This tool will take a js/ts file as input and generate a jest unit test file next to it with all imports mocked and tests stubs for every class method and function exported.
``` export * as myHelpers from './common/helpers'; ``` the following statement is not correctly parsed and causes an error
would be useful to parse hooks and generate dedicated test bp
It would be nice if I could say: `jest-test-gen src/**.*.js` And it would just run on every file it finds that matches the pattern I specified. It would be even...
support needs to be added for something like: ```js function generateKey () {} //... // Export export default { generateKey, generateRandomNumber, encrypt, decrypt, encryptPromise, decryptPromise, hash, }; ```
Simple addition to reading configurations from .env files in your project root. Currently just switches the fileSuffix, but further additions are easily implemented.
when i try to run the generate command for a class component it will generate a test file, but when I open it, it shows some invalid important statement and...