Skip to content

Commit

Permalink
Refactor tests to use Vitest (#2869)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavnathe authored Dec 25, 2024
1 parent 5feefcd commit b9693d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { BrowserRouter } from 'react-router-dom';
import { I18nextProvider } from 'react-i18next';
import i18nForTest from 'utils/i18nForTest';
import DeleteUser from './DeleteUser';
import { describe, it, expect } from 'vitest';

describe('Delete User component', () => {
test('renders delete user correctly', () => {
it('renders delete user correctly', () => {
const { getByText, getAllByText } = render(
<MockedProvider addTypename={false}>
<BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { BrowserRouter } from 'react-router-dom';
import { I18nextProvider } from 'react-i18next';
import i18nForTest from 'utils/i18nForTest';
import OtherSettings from './OtherSettings';
import { describe, it, expect } from 'vitest';

describe('Delete User component', () => {
test('renders delete user correctly', () => {
it('renders delete user correctly', () => {
const { getByText } = render(
<MockedProvider addTypename={false}>
<BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import { MockedProvider } from '@apollo/react-testing';
import { BrowserRouter } from 'react-router-dom';
import { I18nextProvider } from 'react-i18next';
import i18nForTest from 'utils/i18nForTest';
import { describe, it, expect } from 'vitest';

describe('UserProfile component', () => {
test('renders user profile details correctly', () => {
it('renders user profile details correctly', () => {
const userDetails = {
firstName: 'Christopher',
lastName: 'Doe',
Expand Down

0 comments on commit b9693d5

Please sign in to comment.