Skip to content

Commit

Permalink
Rename: #3 vitest 환경 설정용 파일명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Seok93 committed May 17, 2024
1 parent 73b3c3e commit 661f7df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
test: {
globals: true,
environment: 'jsdom',
setupFiles: './src/setupTests.js',
setupFiles: './vitest.setup.ts',
css: true,
},
});
2 changes: 1 addition & 1 deletion src/setupTests.js → vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import '@testing-library/jest-dom';

import { beforeAll, afterEach, afterAll } from 'vitest';
import { server } from './mocks/server';
import { server } from '@mocks/server';

beforeAll(() => server.listen());
afterEach(() => server.resetHandlers());
Expand Down

0 comments on commit 661f7df

Please sign in to comment.