Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REFACTOR]: Jest to Vitest migration for EditCustomFieldDropDown.test.tsx #2929

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading