Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@exodus/test
Advanced tools
A runner for node:test
, jest
, and tape
test suites on top of node:test
(and any runtime)
--esbuild
)--esbuild
)
and typestrip (via --typescript
) modes--jest
), including jest.*
global
expect
module, also jest-extended
and jest-when
just work on topfetch
and WebSocket
sessions--drop-network
support for guaranteed offline testingjest
)--babel
)bun:test
, it runs test files in isolated contexts test()
lifecycle / order# tests/jest/expect.mock.test.js
✔ PASS drinkAll > drinks something lemon-flavoured (1.300417ms)
✔ PASS drinkAll > does not drink something octopus-flavoured (0.191791ms)
✔ PASS drinkAll (1.842959ms)
✔ PASS drinkEach > drinkEach drinks each drink (0.360625ms)
✔ PASS drinkEach (0.463416ms)
✔ PASS toHaveBeenCalledWith > registration applies correctly to orange La Croix (0.53325ms)
✔ PASS toHaveBeenCalledWith (0.564166ms)
✔ PASS toHaveBeenLastCalledWith > applying to all flavors does mango last (0.380375ms)
✔ PASS toHaveBeenLastCalledWith (0.473417ms)
# tests/jest/fn.invocationCallOrder.test.js
✔ PASS mock.invocationCallOrder (4.221042ms)
✔ PASS A > B > C (3.26166ms) ✔ PASS A > B > D (1.699463ms) ✔ PASS A > B (6.72719ms) ✔ PASS A > E > F (1.117997ms) ✔ PASS A > E > G > H (1.330904ms) ✔ PASS A > E > G (1.94971ms) ✔ PASS A > E (3.821825ms) ✔ PASS A > I (0.533096ms) ✔ PASS A (13.887889ms) ✔ PASS J (0.373187ms) ✔ PASS K > L (0.659852ms) ✔ PASS K (1.143195ms)
✔ PASS advanceTimersByTime() does not let microtasks to pass (5.326604ms) ✔ PASS advanceTimersByTime() does not let microtasks to pass even with await (1.336064ms) ✔ PASS advanceTimersByTimeAsync() lets microtasks to pass (6.99526ms) ✔ PASS advanceTimersByTimeAsync() lets microtasks to pass, chained (10.131664ms) ✔ PASS advanceTimersByTimeAsync() lets microtasks to pass, longer chained (8.635472ms) ✔ PASS advanceTimersByTimeAsync() lets microtasks to pass, async chain (56.937983ms)
See live output in CI
@exodus/test/node
-- node:test
API, working under non-Node.js platforms
@exodus/test/jest
-- jest
implementation
@exodus/test/tape
-- tape
mock (can also be helpful when moving from tap
)
Just use "test": "exodus-test"
--jest
-- register jest test helpers as global variables, also load jest.config.*
configuration options
--esbuild
-- use esbuild loader, also enables Typescript support
--babel
-- use babel loader (slower than --esbuild
, makes sense if you have a special config)
--coverage
-- enable coverage, prints coverage output (varies by coverage engine)
--coverage-engine c8
-- use c8 coverage engine (default), also generates ./coverage/
dirs
--coverage-engine node
-- use Node.js builtint coverage engine
--watch
-- operate in watch mode and re-run tests on file changes
--only
-- only run the tests marked with test.only
--passWithNoTests
-- do not error when no test files were found
--write-snapshots
-- write snapshots instead of verifying them (has --test-update-snapshots
alias)
--test-force-exit
-- force exit after tests are done (useful in integration tests where it could be unfeasible to resolve all open handles)
FAQs
A test suite runner
The npm package @exodus/test receives a total of 687 weekly downloads. As such, @exodus/test popularity was classified as not popular.
We found that @exodus/test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.