Skip to content

Commit

Permalink
replace normalize in codegen path
Browse files Browse the repository at this point in the history
  • Loading branch information
marktnoonan committed Mar 9, 2022
1 parent e23facf commit b70bbc3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/data-context/src/sources/migration/codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,15 @@ function createE2ETemplate (pluginPath: string, createConfigOptions: CreateConfi
}

const pluginFile = fs.readFileSync(path.join(createConfigOptions.projectRoot, pluginPath), 'utf8')
const relPluginsPath = path.normalize(`'./${pluginPath}'`)
let relPluginsPath

const startsWithDotSlash = new RegExp(/^.\//)

if (startsWithDotSlash.test(pluginPath)) {
relPluginsPath = pluginPath
} else {
relPluginsPath = `./${ pluginPath}`
}

const requirePlugins = hasDefaultExport(pluginFile)
? `return require(${relPluginsPath}).default(on, config)`
Expand Down

3 comments on commit b70bbc3

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on b70bbc3 Mar 9, 2022

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 platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/linux-x64/marktnoonan/backmerge-develop-3-8-22-b70bbc32bbaf7ec97bb181f0d299c1824a0343ca/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on b70bbc3 Mar 9, 2022

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 platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/darwin-x64/marktnoonan/backmerge-develop-3-8-22-b70bbc32bbaf7ec97bb181f0d299c1824a0343ca/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on b70bbc3 Mar 9, 2022

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 platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.0.0/win32-x64/marktnoonan/backmerge-develop-3-8-22-b70bbc32bbaf7ec97bb181f0d299c1824a0343ca/cypress.tgz

Please sign in to comment.