Skip to content

Commit

Permalink
v1.3.1 return output test file name to caller
Browse files Browse the repository at this point in the history
  • Loading branch information
egm0121 committed Aug 14, 2022
1 parent 5b60b51 commit 67a7ec7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 67a7ec7

Please sign in to comment.