
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@capsulajs/capsulahub-service-test-ci
Advanced tools
Service detailed info
To install the package from NPM registry you should run
yarn add @capsulajs/capsulahub-service-template
or
npm install @capsulajs/capsulahub-service-template
You can get the default export from the link
https://capsulajs.s3.amazonaws.com/develop/service-template/index.js
"services": {
"serviceName": "TestService",
"path": "https://capsulajs.s3.amazonaws.com/develop/service-template/index.js",
"definition": {
"serviceName": "TestService",
"methods": {
"showMessage": { "asyncModel": "requestResponse" }
}
},
"config": { "message": "Test message" }
}
Bootstrap function of the extension.
The public API of the extension.
The documentation about public API.
Run
yarn doc
And open doc/index.html in browser.
All of the manual debugging should be provided only in test:debug mode. Example folder is required only for Cypress needs.
yarn testyarn test:debuggetServiceRef() checks that the service has been bootstrapped correctly and returns the instance of the service.
In order to create a stub or spy of any util a file with utils has to export an object, in which these utils are implemented. Then in the implementation of a test you can do:
import utils from '../../src/utils';
const getConfigStub = cy.stub(utils, getConfig);
getConfigStub.resolves({ name: 'configuration name' });
// run some code from functionality
expect(getConfigStub).to.be.called;
Expectations for stubs and spies:
https://docs.cypress.io/guides/references/assertions.html#Sinon-Chai
CapsulaHub and related services are released under MIT Licence.
FAQs
A service template package for an extension
We found that @capsulajs/capsulahub-service-test-ci demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.