Skip to content

Commit 3d73fc3

Browse files
authored
Merge pull request #350 from superfaceai/feat/disable_reporting
Disable reporting by default
2 parents f4d1a8d + 160085e commit 3d73fc3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/core/config/config.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('Config', () => {
179179
it('replaces invalid values with defaults', async () => {
180180
const customConfig = loadConfigFromCode(
181181
{
182-
disableReporting: false,
182+
disableReporting: true,
183183
metricDebounceTimeMax: -1,
184184
metricDebounceTimeMin: -10,
185185
sandboxTimeout: 0,

src/core/config/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const DEFAULT_CACHE_PATH = (fileSystem: FSPath): string =>
4040
'superface'
4141
);
4242
export const DEFAULT_SANDBOX_TIMEOUT = 100;
43-
export const DEFAULT_DISABLE_REPORTING = false;
43+
export const DEFAULT_DISABLE_REPORTING = true;
4444
export const DEFAULT_CACHE = true;
4545
// 1 hour
4646
export const DEFAULT_BOUND_PROVIDER_TIMEOUT = 60 * 60;

src/node/client/client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ describe('superface client', () => {
255255
});
256256

257257
it('skips SDKInit reporting', async () => {
258-
new SuperfaceClient({ superJson: undefined });
258+
new SuperfaceClient({ superJson: undefined, disableReporting: false });
259259

260260
// Metric Reporter is setted up
261261
expect(MetricReporter).toHaveBeenCalled();

0 commit comments

Comments
 (0)