Skip to content

Commit

Permalink
address comments on readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachJW34 committed Apr 25, 2022
1 parent 02c3e54 commit 34c87f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion npm/vite-dev-server/client/initCypressTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ if (supportFile) {
let supportRelativeToProjectRoot = supportFile.replace(projectRoot, '')

if (CypressInstance.config('platform') === 'win32') {
supportRelativeToProjectRoot = supportFile.replace(projectRoot.replaceAll('/', '\\'), '')
const platformProjectRoot = projectRoot.replaceAll('/', '\\')

supportRelativeToProjectRoot = supportFile.replace(platformProjectRoot, '')
}

// We need a slash before /cypress/supportFile.js, this happens by default
Expand Down

0 comments on commit 34c87f0

Please sign in to comment.