Files
rudder-js-sdk/test/e2e-prod/player.e2e.test.ts
T
edmand46 b5bb18ba5e
CI / check (push) Successful in 17s
CI / publish (push) Has been skipped
chore(release): @rudder/sdk 0.2.0, CurrencyBalance and balances/items, regenerated module client fixture
2026-09-24 14:24:45 +03:00

13 lines
489 B
TypeScript

import { describe, it, expect } from 'vitest';
import { freshPlayer } from './_setup/harness.js';
describe('e2e-prod: player', () => {
it('device login yields a profile with a player id and balances and items arrays', async () => {
const client = await freshPlayer();
const profile = await client.player.reload();
expect(profile.player?.id).toBeTruthy();
expect(Array.isArray(profile.balances)).toBe(true);
expect(Array.isArray(profile.items)).toBe(true);
});
});