Skip to content

Commit

Permalink
refactor: jest to vitest migration for EditCustomFieldDropDown.test.t…
Browse files Browse the repository at this point in the history
…sx (#2929)
  • Loading branch information
hustlernik authored Dec 26, 2024
1 parent a630a91 commit 9772f7d
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import availableFieldTypes from 'utils/fieldTypes';
import { I18nextProvider } from 'react-i18next';
import i18nForTest from 'utils/i18nForTest';
import type { InterfaceCustomFieldData } from 'utils/interfaces';
import { describe, it, expect } from 'vitest';

async function wait(ms = 100): Promise<void> {
await act(() => {
Expand All @@ -18,19 +19,18 @@ async function wait(ms = 100): Promise<void> {
}

describe('Testing Custom Field Dropdown', () => {
test('Component Should be rendered properly', async () => {
it('Component Should be rendered properly', async () => {
const customFieldData = {
type: 'Number',
name: 'Age',
};

const setCustomFieldData: Dispatch<
SetStateAction<InterfaceCustomFieldData>
> = (val) => {
{
val;
}
> = () => {
// Intentionally left blank for testing purposes
};

const props = {
customFieldData: customFieldData as InterfaceCustomFieldData,
setCustomFieldData: setCustomFieldData,
Expand Down

0 comments on commit 9772f7d

Please sign in to comment.