test(frontend): Migrate from describe/it to flat test() pattern (#35305)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2025-09-28 11:45:33 -07:00
committed by GitHub
parent ff102aadb3
commit d62249d13f
255 changed files with 2017 additions and 1554 deletions

View File

@@ -21,12 +21,13 @@ import { getChartDataUri } from '.';
jest.mock('src/utils/pathUtils');
// eslint-disable-next-line no-restricted-globals -- TODO: Migrate from describe blocks
describe('Get ChartUri', () => {
(ensureAppRoot as jest.Mock).mockImplementation(
(path: string) => `/prefix${path}`,
);
it('Get ChartUri when allowDomainSharding:false', () => {
test('Get ChartUri when allowDomainSharding:false', () => {
expect(
getChartDataUri({
path: '/path',
@@ -53,7 +54,7 @@ describe('Get ChartUri', () => {
});
});
it('Get ChartUri when allowDomainSharding:true', () => {
test('Get ChartUri when allowDomainSharding:true', () => {
expect(
getChartDataUri({
path: '/path-allowDomainSharding-true',