Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushmishra1416 committed May 24, 2024
1 parent ddb3522 commit b970453
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 22 deletions.
21 changes: 10 additions & 11 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';

export default defineConfig({
plugins: [react()],
test: {
globals: true,
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts']
setupFiles: ['./vitest.setup.ts'],
},
resolve: {
alias: {
'@': '/src',
'@public': '/public'

}
},
})
alias: {
'@': '/src',
'@public': '/public',
},
},
});
21 changes: 10 additions & 11 deletions vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
import { vi } from "vitest";
import '@testing-library/jest-dom'
import { vi } from 'vitest';
import '@testing-library/jest-dom';

vi.mock("next/font/local", () => ({
vi.mock('next/font/local', () => ({
default: () => ({
className: 'mocked-font-class',
}),
}));

vi.mock('next/font/google', () => ({
Poppins: () => ({
className: 'mocked-google-font-class',
}),
}));
Poppins: () => ({
className: 'mocked-google-font-class',
}),
}));

vi.mock('next-auth', () => ({
getServerSession: vi.fn(),
}));

vi.mock('next-auth', () => ({
getServerSession: vi.fn(),
}));

0 comments on commit b970453

Please sign in to comment.