
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

The
Test-N-Vacis a helper service that can be included in any javascript tests. The helper allows the tests to set up an architecture in the cloud that allows us to test our stacks from event in to event out.
NPM:
npm install
Yarn:
yarn add
The usage examples include the addition on an env file, this is a json/javascript file that contains the following:
In your tests import the library:
const { testNVacClient } = require('test-n-vac');
Create a client passing in the required values:
const helperClient = TestNVacClient({
serviceName: "XXX",
serviceSource: `integration.testing.${randomString}`,
busName: `eventbridge-${env.Testing.STAGE_NAME}`, // The event bus name that the service is attached to
region: process.env.AWS_REGION
});
For more information on the client inputs, the code is documented
Before and after your test you need to spin up the testing architecture:
before(async () => {
await helperClient.createTestArchitecture();
});
after(async () => {
await helperClient.destroyTestArchitecture();
});
In the test, construct your event how you expect the rule to fire and call teh fire event function:
await helperClient.fireEvent(request, 'Event Topic');
Immediately following firing the event you can then run the following to check for resultant messages:
// We must call this one first as there is no way of telling what is the original event vs resultant events as they all match the same source
const initialEvent = await helperClient.getMessagesFromSQS();
const resultant Event = await helperClient.getMessagesFromSQS();
If you have multiple events you can call this multiple times.
It's possible to increase the number of messages received but that can be funky, its better to get them one at a time from the queue
đ¤ 3t Transform
Give a âď¸ if this project helped you!
FAQs

We found that test-n-vac 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.