Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: comment link to accurate docs #20437

Merged
merged 2 commits into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/data-context/src/codegen/spec-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class SpecOptions {
react: {
imports: ['import React from "react"', 'import { mount } from "@cypress/react"', `import ${componentName} from "${componentPath}"`],
componentName,
docsLink: '// see: https://reactjs.org/docs/test-utils.html',
docsLink: '// see: https://on.cypress.io/component-testing',
mount: `mount(<${componentName} />)`,
fileName: this.getFilename(this.parsedPath.ext),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('code-generator', () => {
'import Button from "./Button"',
],
componentName: 'Button',
docsLink: '// see: https://reactjs.org/docs/test-utils.html',
docsLink: '// see: https://on.cypress.io/component-testing',
mount: 'mount(<Button />)',
fileName,
}
Expand All @@ -178,7 +178,7 @@ describe('code-generator', () => {

describe('<Button />', () => {
it('renders', () => {
// see: https://reactjs.org/docs/test-utils.html
// see: https://on.cypress.io/component-testing
mount(<Button />)
})
})`,
Expand Down