[FSSDK-12089] run tests in browser using vitest #1493
javascript.yml
on: pull_request
Matrix: unit_tests
lint_markdown_files
/
lint
1m 5s
lint
1m 43s
integration_tests
/
test
8s
fullstack_production_suite
/
test
5s
Matrix: browser_tests
Coveralls coverage
3s
Annotations
3 errors
|
browser_tests (firefox)
Process completed with exit code 1.
|
|
lib/event_processor/event_store.spec.ts > EventStore > should store event when keys expire during getBatched after store being full:
lib/event_processor/event_store.spec.ts#L386
AssertionError: expected undefined to deeply equal ObjectContaining{…}
- Expected:
ObjectContaining {
"event": {
"context": {
"accountId": "accountId",
"anonymizeIP": true,
"botFiltering": true,
"clientName": "node-sdk",
"clientVersion": "3.0.0",
"projectId": "projectId",
"revision": "1",
},
"enabled": true,
"experiment": {
"id": "expId",
"key": "expKey",
},
"flagKey": "flagKey1",
"layer": {
"id": "layerId",
},
"ruleKey": "expKey",
"ruleType": "experiment",
"timestamp": 69,
"type": "impression",
"user": {
"attributes": [
{
"entityId": "attr1-id",
"key": "attr1-key",
"value": "attr1-value",
},
],
"id": "userId",
},
"uuid": "test",
"variation": {
"id": "varId",
"key": "varKey",
},
},
"id": "1",
}
+ Received:
undefined
❯ /home/runner/work/javascript-sdk/javascript-sdk/lib/event_processor/event_store.spec.ts/</</< lib/event_processor/event_store.spec.ts:386:23
❯ fulfilled lib/event_processor/event_store.spec.ts:28:24
|
|
lib/event_processor/event_store.spec.ts > EventStore > should handle expired events in getBatched:
lib/event_processor/event_store.spec.ts#L317
AssertionError: expected undefined to deeply equal ObjectContaining{…}
- Expected:
ObjectContaining {
"event": {
"context": {
"accountId": "accountId",
"anonymizeIP": true,
"botFiltering": true,
"clientName": "node-sdk",
"clientVersion": "3.0.0",
"projectId": "projectId",
"revision": "1",
},
"enabled": true,
"experiment": {
"id": "expId",
"key": "expKey",
},
"flagKey": "flagKey1",
"layer": {
"id": "layerId",
},
"ruleKey": "expKey",
"ruleType": "experiment",
"timestamp": 69,
"type": "impression",
"user": {
"attributes": [
{
"entityId": "attr1-id",
"key": "attr1-key",
"value": "attr1-value",
},
],
"id": "userId",
},
"uuid": "test-2",
"variation": {
"id": "varId",
"key": "varKey",
},
},
"id": "2",
}
+ Received:
undefined
❯ /home/runner/work/javascript-sdk/javascript-sdk/lib/event_processor/event_store.spec.ts/</</< lib/event_processor/event_store.spec.ts:317:23
❯ fulfilled lib/event_processor/event_store.spec.ts:28:24
|