Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: tsc is fix in cypress

Palash gupta7feee26f8521
diff --git a/frontend/cypress/CustomFunctions/checkRouteDefaultGlobalTimeOptions.ts b/frontend/cypress/CustomFunctions/checkRouteDefaultGlobalTimeOptions.ts
index b19b4bdeeb..bc1fb1b4f5 100644
--- a/frontend/cypress/CustomFunctions/checkRouteDefaultGlobalTimeOptions.ts
+++ b/frontend/cypress/CustomFunctions/checkRouteDefaultGlobalTimeOptions.ts
@@ -1,8 +1,8 @@
+/* eslint-disable @typescript-eslint/no-unused-expressions */
import {
getDefaultOption,
getOptions,
-} from 'container/Header/DateTimeSelection/config';
-// import { AppState } from 'store/reducers';
+} from 'container/TopNav/DateTimeSelection/config';
const CheckRouteDefaultGlobalTimeOptions = ({
route,
diff --git a/frontend/cypress/integration/channels/index.spec.ts b/frontend/cypress/integration/channels/index.spec.ts
index e54ed4757f..33ec5098cd 100644
--- a/frontend/cypress/integration/channels/index.spec.ts
+++ b/frontend/cypress/integration/channels/index.spec.ts
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-unused-expressions */
/// <reference types="cypress" />
import ROUTES from 'constants/routes';
diff --git a/frontend/cypress/integration/globalTime/metricsApplication.spec.ts b/frontend/cypress/integration/globalTime/metricsApplication.spec.ts
index e64ef6711e..a6d5965e7a 100644
--- a/frontend/cypress/integration/globalTime/metricsApplication.spec.ts
+++ b/frontend/cypress/integration/globalTime/metricsApplication.spec.ts
@@ -26,7 +26,7 @@ describe('Global Time Metrics Application', () => {
cy.wait('@defaultApps');
- //clicking on frontend
+ // clicking on frontend
cy.get('tr:nth-child(1) > td:first-child').click();
cy
@@ -64,7 +64,7 @@ describe('Global Time Metrics Application', () => {
cy.wait('@topEndPoints');
cy.wait('@serviceOverview');
- //TODO add errorPercentage also
+ // TODO add errorPercentage also
// cy.wait('@errorPercentage');
cy.wait('@requestPerSecond');
diff --git a/frontend/cypress/integration/metrics/index.spec.ts b/frontend/cypress/integration/metrics/index.spec.ts
index 91cf3b7e38..42564087a4 100644
--- a/frontend/cypress/integration/metrics/index.spec.ts
+++ b/frontend/cypress/integration/metrics/index.spec.ts
@@ -58,6 +58,7 @@ describe('Metrics', () => {
parseFloat(errorRate.toString()).toFixed(2),
);
expect(rpsName).to.be.equals(callRate.toString());
+ return null;
});
});
});
diff --git a/frontend/cypress/integration/rules/index.spec.ts b/frontend/cypress/integration/rules/index.spec.ts
index e5349a33e6..0b4413b7c5 100644
--- a/frontend/cypress/integration/rules/index.spec.ts
+++ b/frontend/cypress/integration/rules/index.spec.ts
@@ -16,7 +16,7 @@ describe('Alerts', () => {
})
.as('defaultRules');
- cy.visit(Cypress.env('baseUrl') + `${ROUTES.LIST_ALL_ALERT}`);
+ cy.visit(`${Cypress.env('baseUrl')}${ROUTES.LIST_ALL_ALERT}`);
cy.wait('@defaultRules');
});
@@ -97,7 +97,7 @@ describe('Alerts', () => {
const defaultLabels = defaultRules.data.rules[index].labels;
- expect(label).to.be.equals(defaultLabels['severity']);
+ expect(label).to.be.equals(defaultLabels.severity);
});
});
});
diff --git a/frontend/cypress/integration/trace/index.spec.ts b/frontend/cypress/integration/trace/index.spec.ts
index 1cfecef08e..3edd7bfdd8 100644
--- a/frontend/cypress/integration/trace/index.spec.ts
+++ b/frontend/cypress/integration/trace/index.spec.ts
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-unused-expressions */
/* eslint-disable sonarjs/no-duplicate-string */
import ROUTES from 'constants/routes';
import { AppState } from 'store/reducers';
@@ -33,7 +34,7 @@ describe('Trace', () => {
})
.as('Filters');
- cy.visit(Cypress.env('baseUrl') + `${ROUTES.TRACE}`);
+ cy.visit(`${Cypress.env('baseUrl')}${ROUTES.TRACE}`);
});
it('First Initial Load should go with 3 AJAX request', () => {