Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
meteor-desktop-plugin-test-suite
Advanced tools
Few utils to ease out functional testing of Meteor Desktop plugins.
Few utils to ease out functional testing of Meteor Desktop plugins.
getElectronPath
Returns path to electron bin.
createTestApp(installPath, pluginName)
Creates a test app with the your plugin included.
/**
* @param {string} installPath - Path at which to install the app.
* @param {string} pluginName - Name of the npm package (plugin) you are testing.
* @returns {Promise}
*/
The test app provides two methods through accessible through IPC.
constructPlugin
params log, app, appSettings, systemEvents, modules, settings
It is just constructing your plugin. Pass undefined
if your plugin does not use certain param.
fireSystemEvent
params systemEvent, ...args
Fires an system event, so you can simulate a systemEvent on which you plugin is listening. You need to pass undefined
as systemEvents
params to make this work.
sendIpc(app, ...args)
Sends an IPC message to the main process. You can use constructPlugin
/**
* @param {Object} app - The app ref from Spectron.
* @param {Array} args - Array of arguments to pass to ipc.send.
* @returns {*}
*/
sendModuleEvent(app, module, event, ...args)
Sends an IPC event to your module.
Use if your plugin/module registers itself via let module = new Module('myModuleName')
.
/**
* @param {Object} app - The app ref from Spectron.
* @param {string} module - The module name your plugin is registerting.
* @param {string} event - Event from your module.
* @param {Array} args - Array of arguments to pass to ipc.send.
*/
An example of usage in tests is here meteor-desktop-splash-screen
FAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
The npm package meteor-desktop-plugin-test-suite receives a total of 0 weekly downloads. As such, meteor-desktop-plugin-test-suite popularity was classified as not popular.
We found that meteor-desktop-plugin-test-suite 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.