Skip to content

Commit

Permalink
test: updating path separator for mochaEvents (#28265)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschile authored Nov 7, 2023
1 parent 79da763 commit 7392f61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ windowsWorkflowFilters: &windows-workflow-filters
- equal: [ 'chore/update_webpack_deps_to_latest_webpack4_compat', << pipeline.git.branch >> ]
- equal: [ 'lerna-optimize-tasks', << pipeline.git.branch >> ]
- equal: [ 'em/shallow-checkout', << pipeline.git.branch >> ]
- equal: [ 'mschile/mochaEvents_win_sep', << pipeline.git.branch >> ]
- matches:
pattern: /^release\/\d+\.\d+\.\d+$/
value: << pipeline.git.branch >>
Expand Down
5 changes: 4 additions & 1 deletion packages/app/cypress/e2e/runner/support/mochaEventsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,8 @@ function sanitizeMochaEvents (args: CypressInCypressMochaEvent[]) {
}

function getCallerFilename () {
return (new Error()).stack!.split('\n')[1].split('/').slice(-1)[0].split(':')[0]
const line = (new Error()).stack!.split('\n')[1]
const pathSep = line.includes('\\') ? '\\' : '/'

return line.split(pathSep).slice(-1)[0].split(':')[0]
}

5 comments on commit 7392f61

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7392f61 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.5.0/linux-arm64/develop-7392f615fecf7b24315e2d97409ecf24c680537d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7392f61 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.5.0/linux-x64/develop-7392f615fecf7b24315e2d97409ecf24c680537d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7392f61 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.5.0/darwin-x64/develop-7392f615fecf7b24315e2d97409ecf24c680537d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7392f61 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.5.0/win32-x64/develop-7392f615fecf7b24315e2d97409ecf24c680537d/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7392f61 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/13.5.0/darwin-arm64/develop-7392f615fecf7b24315e2d97409ecf24c680537d/cypress.tgz

Please sign in to comment.