Skip to content

Commit

Permalink
fix: array mappings when all mappings to simple
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Jun 21, 2024
1 parent a6fc5d9 commit 63b6fbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ function processAllFilter(

if (
currentOutputPropAST.value.type === SyntaxType.PATH &&
currentOutputPropAST.value.parts.length === 0 &&
currentOutputPropAST.value.root?.type === SyntaxType.OBJECT_EXPR

Check warning on line 86 in src/utils/converter.ts

View workflow job for this annotation

GitHub Actions / Coverage annotations (🧪 jest-coverage-report-action)

🌿 Branch is not covered

Warning! Not covered branch

Check warning on line 86 in src/utils/converter.ts

View check run for this annotation

Codecov / codecov/patch

src/utils/converter.ts#L86

Added line #L86 was not covered by tests
) {
return currentOutputPropAST.value.root as ObjectExpression;

Check warning on line 88 in src/utils/converter.ts

View check run for this annotation

Codecov / codecov/patch

src/utils/converter.ts#L88

Added line #L88 was not covered by tests
Expand Down

0 comments on commit 63b6fbf

Please sign in to comment.