
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
gatsby-cypress
Advanced tools
This package provides additional Cypress commands for testing Gatsby websites.
Please note: This package is not required to use Gatsby and Cypress together. It only exists to add extra commands for convenience.
If you want to find elements (e.g. by test ID or by text/label/etc.), consider using @testing-library/cypress
.
To use these commands, first install the necessary packages:
npm install gatsby-cypress --save-dev
Next, add a new file located at cypress/support/e2e.ts
and add the Gatsby-specific Cypress commands:
import "gatsby-cypress/commands"
If you're using TypeScript, add its types to Cypress' tsconfig.json
file:
{
"compilerOptions": {
// highlight-next-line
"types": ["cypress", "gatsby-cypress"]
},
"include": ["."]
}
Once imported, the following additional commands are available:
cy.waitForRouteChange()
: Waits for Gatsby to finish the route change, in
order to ensure event handlers are properly setup. Example:
cy.visit(`/page-2`).waitForRouteChange()
cy.waitForAPI('api-name')
: Waits for a specific Gatsby API to finish. Example:
cy.waitForAPI(`onRouteUpdate`).get(`#element-with-event-handler`).click()
cy.waitForAPIorTimeout('api-name')
: Waits for a specific Gatsby API to finish. It timeouts if it doesn't finish. Example:
cy.waitForAPIorTimeout(`onRouteUpdate`)
Read the End-to-End Testing documentation to learn how to use Cypress and Gatsby together.
FAQs
Cypress tools for Gatsby projects
The npm package gatsby-cypress receives a total of 3,642 weekly downloads. As such, gatsby-cypress popularity was classified as popular.
We found that gatsby-cypress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.