Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
jasmine-only
Advanced tools
jasmine-only is a standalone plugin that you can load after jasmine that adds mocha-style exclusivity helpers describe.only
and it.only
to jasmine 1.3.1
Download the latest version here.
The exclusivity feature allows you to run only the specified suite or test-case by appending .only() to the call
here is a simple example:
describe "jasmine-only", ->
describe "describe.only and it.only", ->
normal = jasmine.createSpy('normal spec')
exclusive = jasmine.createSpy('exclusive spec')
describe "normal", ->
it "shouldnt execute this 1", normal
it.only "it only executes this 1", exclusive
describe.only "exclusive", ->
it "shouldnt execute this 2", normal
it.only "it only executes this 2", exclusive
describe "nested exclusive", ->
it.only "it only executes this 3", ->
exclusive()
expect(normal).not.toHaveBeenCalled()
expect(exclusive).toHaveBeenCalled()
expect(exclusive.callCount).toBe(3)
describe.only "normal 2", ->
it "shouldnt execute this 3", normal
jasmine-only has the following aliases for exclusive spec helpers
describe.only
can be written as ddescribe
it.only
can be written as iit
Much of this work is based on existing prior art, thanks to:
FAQs
Exclusivity spec helpers for jasmine: `describe.only` and `it.only`
The npm package jasmine-only receives a total of 413 weekly downloads. As such, jasmine-only popularity was classified as not popular.
We found that jasmine-only demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.