Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@adeira/fixtures-tester
Advanced tools
yarn add @adeira/fixtures-tester
generateTestsFromFixtures
This function loads all the fixtures (their file content) from your folder and it snapshots the result of your callback operation. This is handy when you have several example files, you want to perform some operation on top of them and snapshot the results.
import { generateTestsFromFixtures } from '@adeira/fixtures-tester';
function operation(input) {
return doSomethingWithTheInput(input);
}
generateTestsFromFixtures(`${__dirname}/__fixtures__`, operation);
There are two additional modes which allow you to control the fixtures behavior more precisely. There are based on the fixture name:
simpleExample.graphql
- fixture will snapshot as expectedsimpleExample.only.graphql
- only these snapshots will run (for debug only)simpleExample.error.graphql
- it's expected that fixture will throw an error (expected to fail tests)The error file convention is required to prevent unintentional snapshots of exceptions.
FAQs
Utility to ease testing with fixtures.
The npm package @adeira/fixtures-tester receives a total of 16 weekly downloads. As such, @adeira/fixtures-tester popularity was classified as not popular.
We found that @adeira/fixtures-tester demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.