Skip to content

Commit

Permalink
add extension alias for cypress to resolve ts files with js endings
Browse files Browse the repository at this point in the history
  • Loading branch information
benasher44 committed Jun 25, 2023
1 parent 6b79a97 commit 7605918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ module.exports = on => {
resolve: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
alias,
extensionAlias: {
'.js': ['.js', '.ts'],
},
},
},
}
Expand Down

0 comments on commit 7605918

Please sign in to comment.