
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
FAst and smaRT TESTing
FarTest is an obvious, colorful and enjoyable test library for small applications.
Your terminal need to accept UTF-8 characters and ANSI colors for a better experience.
npm install --save-dev fartest
In short :
npm i -D fartest
FarTest export three functions :
First, let's import the functions we need :
const { start, stage, test } = require('fartest')
With ES modules :
import { start, stage, test } from 'fartest')
Then, we start the test :
// the name of the function (MyAwesomeTest) is the name of the test
// and is optional
start(async function MyAwesomeTest() {
// we define the current stage of our test
stage('Some succesful tests')
// simple assertion
test(1 == "1")
// the test description will be displayed in case of error
test(21 == "21", "Test description")
stage('A simple test which will not succeed')
test(21 === "21", "Test description") // will fail because types don't match
stage('Crash test')
undefined.coco = 321321 // any invalid code will be caught
})
Declare your main test functions as async
and just use await
anywhere an asynchronous function is used.
You can run multiple tests at once, in which case they will be executed one after another :
// test 1
start(async function CoolTest() {
stage('1 == 1')
test(1 == 1)
stage('2 == "2"')
test(2 == "2")
})
// test 2
start(async function SuperCoolTest() {
stage('3 == 3')
test(3 == 3)
})
Let's FarT!
FAQs
A minimal, colorful and enjoyable test library for small applications
The npm package fartest receives a total of 0 weekly downloads. As such, fartest popularity was classified as not popular.
We found that fartest 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
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.