Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
cypress-commands
Advanced tools
A collection of Cypress commands to extend and complement the default commands
A collection of high-quality Cypress commands to complement and extend the defaults.
This repository is not maintained by the Cypress developers. This means we can choose to ignore parts of their vision.
Documentation is a cornerstone of Cypress, the commands in this repository will try to keep these documentation standards.
cypress-commands
should work with the latest version of Cypress. If this is not the case, please
open an issue.
It's tested against multiple versions of Cypress. See the CI definition for the most up-to-date list.
Install the module.
npm install cypress-commands
Add the following line to cypress/support/index.js
.
require('cypress-commands');
Import typescript definitions by adding them to your tsconfig.json
. Add the cypress-commands types
before the Cypress types so intellisense will prefer the cypress-commands versions of extended
commands.
{
"compilerOptions": {
"types": ["cypress-commands", "cypress"]
}
}
cypress.config.ts
limitationDue to the way Cypress defines its types, it's currently not possible for plugin authors to extend the Cypress config types.
Because of this limitation, it's not possible to set the requestBaseUrl
option in
cypress.config.ts
. For the time being, you can work around this limitation by using
cypress.config.js
instead.
See https://github.com/cypress-io/cypress/issues/22127 for more details.
These commands have been extended to be able to do more than originally intended. For these commands, all tests that exist in the Cypress repository are copied to make sure the default behaviour stays identical unless we want it changed.
These commands do not exist in Cypress by default.
Contributors are always welcome! I don't care if you are a beginner or an expert, all help is welcome.
First clone the repository and install the dependencies.
npm start
npm test
3.0.0 - 2022-06-06
Cypress 10 supports node@16 or up, to simplify CI we're no longer testing with Node@10. It should still work, but it's no longer guaranteed.
Cypress 10 introduces a new configuration format. To simplify CI we're no longer testing with Cypress@9 or lower. It should still work, but it's no longer guaranteed.
If you're not ready to upgrade to Cypress 10 yet, stick to cypress-commands@2.
Cypress 10 introduces breaking changes to the plugin system. None of these breaking changes have
impact on cypress-commands
. Changes to ensure support for Cypress@10 are mainly documentation
changes.
FAQs
A collection of Cypress commands to extend and complement the default commands
The npm package cypress-commands receives a total of 46,872 weekly downloads. As such, cypress-commands popularity was classified as popular.
We found that cypress-commands demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.