
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
cases-of-test
Advanced tools
Run test locally with only/skip flag but with the condition that it can detect there are tests flagged with only and it will fail on CI/CD environment
It groups the test cases into a collection of tests so that you can do the following
testCases({
tests: [
[testAlphabet],
[testArray],
[testCapitalizeUncapitalize],
[testCreateGranulaString],
[testIsEqual],
[testInRangeOfMinMax],
[testNumber, 'only'],
[testReverse, 'only'],
[testWhitespace],
],
});
Which will then execute testNumber and testReverse only by your testing framework
It will also abort the tests when it detect there are tests flagged with only and thus fail the CI/CD
I used to add only to describe or/and test/it a lot in my codebase back in the days like so
describe.only('...', () => {
it.only('...', () => {
// tests...
});
});
The problem is that I won't know whether all of the tests are executed in CI/CD environment, since it doesn't warn that there are tests config with only.
In the end, I have to open the log to find out
Other times I write code like this,
import test1 from 'test1';
import test2 from 'test2';
test1();
test2();
And I will comment out irrelevant test when I wanna test new changes
In the end I forgot to uncomment the commented tests in CI/CD environment
When there are test flagged with only, the following will happen in CI/CD environment
| Setup | Output |
|---|---|
![]() | ![]() |
Images from the log of Github Actions of denoify repository
jest, vitestFAQs
Run test locally with only/skip flag but with the condition that it can detect there are tests flagged with only and it will fail on CI/CD environment
We found that cases-of-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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.