Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@blockfrost/blockfrost-tests
Advanced tools
Readme
You have three options how to run the tests.
yarn test:mainnet
yarn test:preview
yarn test:preprod
yarn test:ipfs
-t
or --testNamePattern
- run only tests with matching name
You can use a different environment variables to tweak the tests behaviour.
SERVER_URL
where to run the tests | default: localhost:3000PROJECT_ID
set the header with token to use in every testIS_CACHED
(true = DISABLED IN RYO)
isCached: true
isCached: false
CACHED_ONLY
- use only cached fixturesSERVER_URL=https://cardano-mainnet.blockfrost.io/api/v0/ PROJECT_ID=mainnetLZgT76GL3subckxt9Y1G8niouSCVwWtn yarn test:mainnet -t addresses/:address/utxos;
import { expect } from 'vitest';
export default [
{
testName:
'blocks/slot/:slot_number and blocks/epoch/:epoch_number/slot/:slot_number - generic shelley',
endpoints: ['blocks/slot/16019999', 'blocks/epoch/234/slot/295199'],
response: {
time: 1607586290,
height: 5058628,
hash: '5d3df361b77ba7aff50a00ace1f00cec23126aa3b67af775dbf70c88c7e85ca4',
slot: 16019999,
epoch: 234,
epoch_slot: 295199,
slot_leader: 'pool1x0qm7xsyh2za3ltprxsgael544je4hg8tc3q3v5gv232z8jt4wp',
size: 392,
tx_count: 1,
output: '6225908',
fees: '173025',
block_vrf: 'vrf_vk17hff333krucx82wjdhnwnfvusg8p4zn22lwmf2pmd2e5mghu52hqvpf8qj',
previous_block: '7ee80a3c33b7ebb876671a936f57ec79f02a8b44a5132033c8860137e1c01c13',
next_block: '94f96c20547b47e9668d5f42c88d0d3b92700c2614ec9bb3ad683bb0bba471f6',
confirmations: expect.any(Number),
},
},
];
FAQs
Unknown package
The npm package @blockfrost/blockfrost-tests receives a total of 12 weekly downloads. As such, @blockfrost/blockfrost-tests popularity was classified as not popular.
We found that @blockfrost/blockfrost-tests demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.