Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/E2E/yarn.lock
Original file line number Diff line number Diff line change
@@ -8041,11 +8041,11 @@ __metadata:
linkType: hard

"nanoid@npm:^3.1.23":
version: 3.3.7
resolution: "nanoid@npm:3.3.7"
version: 3.3.8
resolution: "nanoid@npm:3.3.8"
bin:
nanoid: bin/nanoid.cjs
checksum: 10c0/e3fb661aa083454f40500473bb69eedb85dc160e763150b9a2c567c7e9ff560ce028a9f833123b618a6ea742e311138b591910e795614a629029e86e180660f3
checksum: 10c0/4b1bb29f6cfebf3be3bc4ad1f1296fb0a10a3043a79f34fbffe75d1621b4318319211cd420549459018ea3592f0d2f159247a6f874911d6d26eaaadda2478120
languageName: node
linkType: hard


Unchanged files with check annotations Beta

},
};
const store = new MockSegmentStore({

Check warning on line 176 in packages/core/src/__tests__/internal/checkInstalledVersion.test.ts

GitHub Actions / build-and-test

'store' is already declared in the upper scope on line 22 column 9
context: {
...currentContext,
...injectedContextByPlugins,
expect(appStateChangeListener).toBeDefined();
appStateChangeListener!(to);

Check warning on line 64 in packages/core/src/__tests__/internal/handleAppStateChange.test.ts

GitHub Actions / build-and-test

Forbidden non-null assertion
// Since the calls to process lifecycle events are not awaitable we have to await for ticks here
await new Promise(process.nextTick);
await new Promise(process.nextTick);
it('stamps basic data: timestamp and messageId for pending events when not ready', async () => {
const client = new SegmentClient(clientArgs);
jest.spyOn(client.isReady, 'value', 'get').mockReturnValue(false);
// @ts-ignore

Check warning on line 41 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const timeline = client.timeline;
jest.spyOn(timeline, 'process');
};
// While not ready only timestamp and messageId should be defined
// @ts-ignore

Check warning on line 56 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const pendingEvents = client.store.pendingEvents.get();
expect(pendingEvents.length).toBe(1);
const pendingEvent = pendingEvents[0];
// When ready it replays events
jest.spyOn(client.isReady, 'value', 'get').mockReturnValue(true);
// @ts-ignore

Check warning on line 69 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
await client.onReady();
expectedEvent = {
...expectedEvent,
anonymousId: store.userInfo.get().anonymousId,
};
// @ts-ignore

Check warning on line 78 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
expect(client.store.pendingEvents.get().length).toBe(0);
expect(timeline.process).toHaveBeenCalledWith(
const client = new SegmentClient(clientArgs);
jest.spyOn(client.isReady, 'value', 'get').mockReturnValue(true);
// @ts-ignore

Check warning on line 90 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const timeline = client.timeline;
jest.spyOn(timeline, 'process');
anonymousId: store.userInfo.get().anonymousId,
} as SegmentEvent;
// @ts-ignore

Check warning on line 107 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const pendingEvents = client.store.pendingEvents.get();
expect(pendingEvents.length).toBe(0);
const client = new SegmentClient(clientArgs);
jest.spyOn(client.isReady, 'value', 'get').mockReturnValue(true);
// @ts-ignore

Check warning on line 120 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const timeline = client.timeline;
jest.spyOn(timeline, 'process');
anonymousId: 'foo',
} as SegmentEvent;
// @ts-ignore

Check warning on line 152 in packages/core/src/__tests__/methods/process.test.ts

GitHub Actions / build-and-test

Do not use "@ts-ignore" because it alters compilation errors
const pendingEvents = client.store.pendingEvents.get();
expect(pendingEvents.length).toBe(0);