Skip to content

Commit

Permalink
Merge pull request #1 from renovatebot/windows-slashes
Browse files Browse the repository at this point in the history
Update index.js
  • Loading branch information
zharinov committed Aug 17, 2021
2 parents 1ebc0b1 + d8669e4 commit 76829fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ module.exports = {
}
const relativeFileName = absoluteFileName
.replace(process.cwd(), '')
.replace(/^\/(?:lib|src|test)\//, '');
.replace(/\//g, '/')
.replace(/^(?:\/(?:lib|src|test))?\//, '');
const testName = String(relativeFileName.replace(/\.spec\.ts$/, ''));
return {
CallExpression(node) {
Expand Down

0 comments on commit 76829fd

Please sign in to comment.