Skip to content

Commit

Permalink
fix: remove test file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
kien-ht committed Jul 25, 2024
1 parent 7a5e665 commit 8190528
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils.browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ const getFileName = ({
return (
nameTemplate
.replace(/\[givenName\]/, givenName)
// IN-QUEUE-FOR-BREAKING-CHANGE: should remove all spec file name extensions, instead of removing only .js extension
.replace(/\[specName\]/, specName.replace('.js', ''))
.replace(/\[specName\]/, specName.replace(/\.(js|jsx|ts|tsx)$/, ''))
.replace(/\[browserName\]/, browserName)
.replace(/\[width\]/, width)
.replace(/\[height\]/, height)
Expand Down

0 comments on commit 8190528

Please sign in to comment.