
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@ni/jasmine-parameterized
Advanced tools
The @ni/jasmine-parameterized
library provides utility functions for writing Jasmine parameterized tests.
Install in your app's devDependencies
:
npm install -D @ni/jasmine-parameterized
parameterizeSpec
Use parameterizeSpec
to create a parameterized test using an array of tests with names.
In the following example:
cats-and-dogs
is focused for debuggingfrogs
is configured to always be disabledmen
will run normally as it has no overrideimport { parameterizeSpec } from '@ni/jasmine-parameterized';
const rainTests = [
{ name: 'cats-and-dogs', type: 'idiom' },
{ name: 'frogs', type: 'idiom'},
{ name: 'men', type: 'lyrics'}
] as const;
describe('Different rains', () => {
parameterizeSpec(rainTests, (spec, name, value) => {
spec(`of type ${name} exist`, () => {
expect(value.type).toBeDefined();
});
}, {
'cats-and-dogs': fit,
frogs: xit
});
});
parameterizeSuite
Use parameterizeSuite
to create a parameterized test suite using an array of test scenarios with names.
In the following example:
cats-and-dogs
is focused for debuggingfrogs
is configured to always be disabledmen
will run normally as it has no overrideimport { parameterizeSuite } from '@ni/jasmine-parameterized';
const rainTests = [
{ name: 'cats-and-dogs', type: 'idiom' },
{ name: 'frogs' type: 'idiom'},
{ name: 'men', type: 'lyrics'}
] as const;
parameterizeSuite(rainTests, (suite, name, value) => {
suite(`with ${name}`, () => {
it('expect type to be defined', () => {
expect(value.type).toBeDefined();
});
it('expect type to have a non-zero length', () => {
const length = value.type.length;
expect(length).toBeGreaterThan(0);
});
});
}, {
'cats-and-dogs': fdescribe,
frogs: xdescribe
});
See Getting Started
in CONTRIBUTING.md
.
FAQs
A utility to write parameterized jasmine tests
The npm package @ni/jasmine-parameterized receives a total of 14 weekly downloads. As such, @ni/jasmine-parameterized popularity was classified as not popular.
We found that @ni/jasmine-parameterized demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.