
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@lg-tools/test
Advanced tools
@lg-tools/testShared test config & scripts for LeafyGreen repositories.
It's best not to use this as a standalone package, but use it as part of @lg-tools/cli instead.
To run tests using the shared config, use the lg cli:
> lg test
To see all options for this command run:
> lg test --help
To extend/override the shared config (located in @lg-tools/test/config), create a jest.config.js file at the root of the repository, and extend the default config with the code below:
// ./jest.config.js
const jestConfig = require('@lg-tools/test/config/js.config.js');
module.exports = {
...jestConfig,
// extend your jest config here
};
You can also pass a --config option to the test command:
> lg test --config ./path/to/config
In CI we test our components using React 17.
To do this manually, first run the init script in order to install the specific testing dependencies needed for React 17. (yarn init17 from the repo root)
> yarn init17
Next, run your tests with the --react17 flag. This ensures that the tests are run with specific Jest config for React 17.
> yarn test --react17
To go back to the default version of React you'll need to clear your packages and re-build:
> yarn clean:modules && yarn run init
FAQs
Jest setup & config for LeafyGreen repositories
We found that @lg-tools/test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.