Refactor: 모킹 테스트 가능한 코드 주석으로 추가

This commit is contained in:
정현조 2024-09-11 13:38:12 +09:00
parent 8e74ef4428
commit 478d47be80

View File

@ -1,3 +1,30 @@
// import React from 'react';
// import ReactDOM from 'react-dom/client';
// import App from './App.tsx';
// import './index.css';
// async function enableMocking() {
// if (!import.meta.env.DEV) {
// return;
// }
// try {
// const { worker } = await import('./mocks/browser.ts');
// await worker.start();
// console.log('[MSW] Mocking enabled. Service Worker is running.');
// } catch (error) {
// console.error('[MSW] Failed to start the Service Worker:', error);
// }
// }
// enableMocking().then(() => {
// ReactDOM.createRoot(document.getElementById('root')!).render(
// <React.StrictMode>
// <App />
// </React.StrictMode>
// );
// });
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom/client';
import App from './App.tsx'; import App from './App.tsx';