
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
slspress-test
Advanced tools
A library for rapidly developing Serverless applications inspired by express
A collection of useful testing utilities to aid in the testing of serverless projects.
Use this to start and stop Serverless Offline instances from your tests. This allows you to run integration tests against a local version of your code using Serverless Offline. Both your serverless code and tests will run in the same node process making debugging a bit easier and as you write plain mocha tests IDEs with Mocha support integrate well.
Example using ServerlessOfflineManager with chai and request to test an endpoint. The global before and after functions will start and stop a serverless application in the current working directory prior to and after running all of your tests.
const OfflineManager = require('slspress-test').ServerlessOfflineManager;
const expect = require('chai').expect;
const request = require('request-promise-native');
describe('Integration Test', function() {
this.timeout(1000 * 10);
const offlineManager = new OfflineManager();
let testUrl = null;
before(() => offlineManager.start(environment).then(url => testUrl = url));
after(() => offlineManager.stop());
it('tests something', function () {
return request(`${testUrl}/some/url`)
.then(body => expect(body).to.equal('Something'));
});
});
You can pass properties to serverless offline by adding a constructor argument. For example if the application
you wish to test is not in the working directory you could do something like this new OfflineManager({ serverless: { servicePath: __dirname + '/your-app' }})
.
FAQs
A library for rapidly developing Serverless applications inspired by express
The npm package slspress-test receives a total of 0 weekly downloads. As such, slspress-test popularity was classified as not popular.
We found that slspress-test 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.