diff --git a/CHANGELOG.md b/CHANGELOG.md index 91ffb7f..8960a9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ # Changelog -## v1.2.0 +## v1.3.1 + +- return test output filename from `run()` function + +## v1.3.0 - #2 support for ts and tsx components with prop types parsing - #5 add an option `--outputDir` to specify a custom output directory relative to the cwd() or absolute path -## v1.1.0 +## v1.1.0 - #3 Support for static methods in classes - #4 .toBeDefined instead of (or in addition to) .toBeTruthy - #6 migrate tests from jasmine to Jest, makes a lot of sense for this project diff --git a/package.json b/package.json index 98a8232..ec44374 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jest-test-gen", - "version": "1.3.0", + "version": "1.3.1", "description": "Generator of jest unit test with all imports mocked and tests stub for every class and function exported", "keywords": [ "jest", diff --git a/src/main.ts b/src/main.ts index 6265995..631d336 100644 --- a/src/main.ts +++ b/src/main.ts @@ -48,5 +48,6 @@ export function run(args: minimist.ParsedArgs, opts?: TRunOptions) { return output; } console.log('Writing generated test file: ', specFileName); - return writeFileSync(specFileName, output); + writeFileSync(specFileName, output); + return specFileName; } \ No newline at end of file