Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@onderceylan/cypress-plugin
Advanced tools
The cypress plugin for ng-apimock.
This plugin connects to ng-apimock and makes the plugin functions available within the tests.
require('@ng-apimock/cypress-plugin').load();
cypress.json
configuration fileUse NG_API_MOCK_ENABLE_LOGS with a string value of "true" or "false". Default: "true". Use NG_API_MOCK_BASE_URL with a string value of base url of your ng-apimock server
{
"env": {
"NG_API_MOCK_BASE_URL": "http://localhost:3000",
"NG_API_MOCK_ENABLE_LOGS": "false"
}
}
describe('Some test', () => {
it('does something', () =>
cy.selectScenario('my-mock-name', 'some-scenario'));
});
The following functions are available. Each plugin function returns a promise.
Selects the given scenario (when calling this function without a scenario or with 'passThrough' as scenario name, the call will be passed through to the actual backend).
Sets the delay time in milliseconds for the mock. This makes sure the response is delayed. The delay set here overrides the delay defined in the response mock.
Sets the indicator which enables / disables the request logging.
Adds or updates the global variable.
Adds or updates the global variables ie. {'some':'value', 'another': 'value'}.
Deletes the global variable.
Resets all the mocks to the default state.
Sets all the mocks to pass through.
Sets the mocks and variables in the selected state.
FAQs
Cypress plugin for ng-apimock
The npm package @onderceylan/cypress-plugin receives a total of 0 weekly downloads. As such, @onderceylan/cypress-plugin popularity was classified as not popular.
We found that @onderceylan/cypress-plugin 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.