first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,28 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
import {
getAlbum,
getAlbumTracks,
getArtist,
getNewReleases,
searchForAlbum,
} from './apiResponses';
describe('Spotify', () => {
describe('Run workflow', () => {
beforeAll(() => {
const mock = nock('https://api.spotify.com/v1');
mock
.get('/search')
.query({ q: 'From Xero', type: 'album', limit: 2 })
.reply(200, searchForAlbum);
mock.get('/browse/new-releases').query({ limit: 2 }).reply(200, getNewReleases);
mock.get('/albums/4R6FV9NSzhPihHR0h4pI93/tracks').reply(200, getAlbumTracks);
mock.get('/albums/4R6FV9NSzhPihHR0h4pI93').reply(200, getAlbum);
mock.get('/artists/12Chz98pHFMPJEknJQMWvI').reply(200, getArtist);
});
new NodeTestHarness().setupTests();
});
});