Skip to content

Commit

Permalink
[React] Statement can be simplifiable
Browse files Browse the repository at this point in the history
  • Loading branch information
qmonmert committed Dec 31, 2024
1 parent 720d158 commit 899ebb9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions generators/react/templates/jest.conf.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ function mapTypescriptAliasToJestAlias(alias = {}) {
Object.entries(tsconfig.compilerOptions.paths)
.filter(([_key, value]) => {
// use Typescript alias in Jest only if this has value
if (value.length) {
return true;
}
return false;
return !!value.length;
})
.map(([key, value]) => {
// if Typescript alias ends with /* then in Jest:
Expand Down

0 comments on commit 899ebb9

Please sign in to comment.