![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@salestrip/stub
Advanced tools
A simple stub helper for Jest.
npm install --save-dev @salestrip/stub
const stub = require('@salestrip/stub')
const fooService = require('services/foo.service')
beforeEach(() => {
stub(fooService, 'method')
})
afterEach(() => {
fooService.method.restore()
})
it('resolves', () => {
fooService.method.resolves('value')
expect(fooService.method()).resolves.toBe('value')
})
it('rejects', () => {
fooService.method.rejects('value')
expect(fooService.method()).rejects.toBe('value')
})
it('returns', () => {
fooService.method.returns('value')
expect(fooService.method()).toBe('value')
})
it('throws', () => {
fooService.method.throws(new Error('value'))
expect(fooService.method()).toThrow('value')
})
To release a new version, use npm. Using npm version
will update the version in package.json
before committing the resulting file change to git and adding the appropriate git tag. Pushing a tagged version to origin
will trigger a CI deployment to the npm registry.
To release a bugfix update the patch version.
npm version patch
git push
git push --tags
To release a feature update the minor version.
npm version minor
git push
git push --tags
To release a breaking change update the major version.
npm version major
git push
git push --tags
FAQs
A simple stub helper for Jest
The npm package @salestrip/stub receives a total of 3 weekly downloads. As such, @salestrip/stub popularity was classified as not popular.
We found that @salestrip/stub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.