feat: Allow configuring analytics API endpoint separate from flags API #323
Annotations
2 errors and 1 warning
tests/sdk/analytics.test.ts > test_analytics_processor_flush_post_request_data_match_ananlytics_data:
tests/sdk/analytics.test.ts#L29
AssertionError: expected "fetch" to be called with arguments: [ …(2) ]
Received:
1st fetch call:
Array [
- "http://testUrlanalytics/flags/",
- ObjectContaining {
+ "http://testUrl/analytics/flags/",
+ Object {
"body": "{\"myFeature1\":1,\"myFeature2\":1}",
"headers": Object {
"Content-Type": "application/json",
"X-Environment-Key": "test-key",
},
"method": "POST",
+ "signal": AbortSignal {
+ Symbol(kEvents): Map {},
+ Symbol(events.maxEventTargetListeners): 10,
+ Symbol(events.maxEventTargetListenersWarned): false,
+ Symbol(kAborted): false,
+ Symbol(kReason): undefined,
+ Symbol(kComposite): false,
+ Symbol(kTimeout): true,
+ },
},
]
Number of calls: 1
❯ tests/sdk/analytics.test.ts:29:19
|
build-and-test
Process completed with exit code 1.
|
build-and-test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|