Skip to content

Commit a81377b

Browse files
committed
Disable MSW logs in all examples
1 parent 59a4028 commit a81377b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/crm/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { worker } from './providers/fakerest/fakeServer';
77
const container = document.getElementById('root');
88
const root = createRoot(container!);
99

10-
worker.start({ onUnhandledRequest: 'bypass' }).then(() => {
10+
worker.start({ onUnhandledRequest: 'bypass', quiet: true }).then(() => {
1111
root.render(
1212
<React.StrictMode>
1313
<App />

examples/demo/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!container) {
1010
const root = createRoot(container);
1111

1212
fakeServerWorker(process.env.REACT_APP_DATA_PROVIDER ?? '')
13-
.then(worker => worker.start({ onUnhandledRequest: 'bypass' }))
13+
.then(worker => worker.start({ onUnhandledRequest: 'bypass', quiet: true }))
1414
.then(() => {
1515
root.render(<App />);
1616
});

examples/simple/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { worker } from './fakeServer';
2020
const container = document.getElementById('root') as HTMLElement;
2121
const root = createRoot(container);
2222

23-
worker.start({ onUnhandledRequest: 'bypass' }).then(() => {
23+
worker.start({ onUnhandledRequest: 'bypass', quiet: true }).then(() => {
2424
root.render(
2525
<React.StrictMode>
2626
<Admin

0 commit comments

Comments
 (0)