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

feat(scripts): support absolute path for cypress folder #33

Merged
merged 1 commit into from
Nov 25, 2021

Conversation

SimeonC
Copy link
Collaborator

@SimeonC SimeonC commented Nov 24, 2021

This fixes the issue with needing relative paths in cypress component tests that become extremely long.

The new import path is import '#cypress/support/commands' at present.

Reasoning is as follows;

  • Straight import 'cypress/support/commands' is a little unclear as unlike our other absolute path imports this folder isn't a child of './src'. Also it clashes with the actual cypress package import { CyHttpMessages } from 'cypress/types/net-stubbing';
  • Abbreviations like cy are also unclear as this again is often used by cypress usage/implementation (not as a package though)
  • local-cypress instead of #cypress is also up for debate, I prefer the # as it's shorter and more clear that it's different.
📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @tablecheck/scripts@1.8.0-canary.33.38f66ef7c589077dc6e02d72250f01533188015b.0
# or 
yarn add @tablecheck/scripts@1.8.0-canary.33.38f66ef7c589077dc6e02d72250f01533188015b.0

This fixes the issue with needing relative paths in cypress component tests that become extremely long.
@SimeonC SimeonC added the minor Increment the minor version when merged label Nov 24, 2021
@github-actions
Copy link

Unit Test Results

  2 files    9 suites   6s ⏱️
56 tests 56 ✔️ 0 💤 0

Results for commit 43763ed.

@SimeonC SimeonC merged commit 40311b7 into main Nov 25, 2021
@SimeonC SimeonC deleted the support-relative-cypress-paths branch November 25, 2021 04:31
@tablecheck-public-automation
Copy link
Collaborator

🚀 PR was released in @tablecheck/scripts@1.8.0 🚀

@tablecheck-public-automation tablecheck-public-automation added the released This issue/pull request has been released. label Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants