{"_id":"microsoft-onedrive-mock","_rev":"6-cee1b983c1e0cd4a9c87e5a120f90e37","name":"microsoft-onedrive-mock","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"microsoft-onedrive-mock","version":"1.0.0","_id":"microsoft-onedrive-mock@1.0.0","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"dist":{"shasum":"6d4f25619b24e2db1a5161e90491aa0c6584a915","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.0.tgz","fileCount":35,"integrity":"sha512-kC3NArTv4EO8O+RWTevJFGGNVVejuS8VIVLMiN+QSFGyauk4IPHZEoH7VwoQkdHrrs2BfxYG4qv+BHT99WB4BQ==","signatures":[{"sig":"MEYCIQDE3ubxibwA1mBsnfScAA24+Tc0PYeGXTTbxRZFwIw64wIhAJV3jP+CMnOsut1lsKpWl9rJkc/QKWqG+SukuNTdqVn1","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10100063},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"5e78ebc1e0ff1216832c8692565da36a9cf4d648","scripts":{"dev":"ts-node src/index.ts","lint":"eslint .","test":"TEST_TARGET=mock vitest run","build":"tsc","start":"node dist/index.js","lint:fix":"eslint . --fix","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","example:login":"ts-node examples/serve-login.ts","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","example:device-login":"ts-node examples/device-login.ts"},"_npmUser":{"name":"pubkey","email":"dieser.daniel@outlook.com"},"_npmVersion":"11.5.1","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","directories":{},"_nodeVersion":"24.6.0","_hasShrinkwrap":false,"devDependencies":{"cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","vitest":"4.0.18","express":"5.2.1","globals":"17.2.0","ts-node":"^10.9.2","supertest":"7.2.2","@eslint/js":"9.39.2","playwright":"1.58.0","typescript":"5.9.3","@types/cors":"2.8.19","@types/node":"25.1.0","@types/express":"5.0.6","@vitest/browser":"4.0.18","async-test-util":"2.5.0","@types/supertest":"6.0.3","typescript-eslint":"8.54.0","start-server-and-test":"2.1.3","@vitest/browser-playwright":"4.0.18","@microsoft/microsoft-graph-types":"^2.43.1"},"peerDependencies":{"express":"5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/microsoft-onedrive-mock_1.0.0_1772547244516_0.6162058602834461","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"microsoft-onedrive-mock","version":"1.0.1","keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"author":{"name":"pubkey"},"license":"MIT","_id":"microsoft-onedrive-mock@1.0.1","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"dist":{"shasum":"778ac846ea01dd2154776ed394562d773910aefa","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.1.tgz","fileCount":13,"integrity":"sha512-+9e3r6V++2ab31tH18IXFk2K1JNgdT/o54Fbi7cufwh9+pk97dKcnMBGx3gmotzeqAsh6QrpNwgndoLl6My6GQ==","signatures":[{"sig":"MEYCIQDp8yzdl0+sMREK+fMQPQf1n5aBq6Vij09RsrSwcE0CpQIhAOZSpa2YjtNt/+XgdwePyyUsb5oSbE277NHFySKj1hZU","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/microsoft-onedrive-mock@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32843},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"ecbf7bcdfb72d66525ef1f5246860e8ab0665b5f","scripts":{"dev":"ts-node src/index.ts","lint":"eslint .","test":"TEST_TARGET=mock vitest run","build":"tsc","start":"node dist/index.js","lint:fix":"eslint . --fix","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","example:login":"ts-node examples/serve-login.ts","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","example:device-login":"ts-node examples/device-login.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e99246e-d378-4383-9a90-bbe05fd85df0"}},"repository":{"url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git","type":"git"},"_npmVersion":"11.9.0","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","vitest":"4.0.18","express":"5.2.1","globals":"17.2.0","ts-node":"10.9.2","supertest":"7.2.2","@eslint/js":"9.39.2","playwright":"1.58.0","typescript":"5.9.3","@types/cors":"2.8.19","@types/node":"25.1.0","@types/express":"5.0.6","@vitest/browser":"4.0.18","async-test-util":"2.5.0","@types/supertest":"6.0.3","typescript-eslint":"8.54.0","start-server-and-test":"2.1.3","@vitest/browser-playwright":"4.0.18","@microsoft/microsoft-graph-types":"2.43.1"},"peerDependencies":{"express":"5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/microsoft-onedrive-mock_1.0.1_1772722564924_0.7102724082870271","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"microsoft-onedrive-mock","version":"1.0.2","keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"author":{"name":"pubkey"},"license":"MIT","_id":"microsoft-onedrive-mock@1.0.2","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"dist":{"shasum":"edf1a931308e95141b5ff8c173214101761268f0","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.2.tgz","fileCount":13,"integrity":"sha512-4SgCXIyp4gK2ZfGO0pLZ7eekC/UdpbITZoX77294Y2lek//Z0ag7K7hPrAVfepjPyk7H8mna2rxohM+rKPx/QQ==","signatures":[{"sig":"MEYCIQDSsntcy9CUP1e39F8cYXT0EUOc0Dy+IpS2aPfpOYlScQIhAKV+WUxZ5qTTC8ZEe7N3BmM08IlopnEPkjBpTgZKemvp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/microsoft-onedrive-mock@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":37410},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"7d61cfd4885194288e03ae9440a62bd2c38e6a7c","scripts":{"dev":"ts-node src/index.ts","lint":"eslint .","test":"TEST_TARGET=mock vitest run","build":"tsc","start":"node dist/index.js","lint:fix":"eslint . --fix","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","example:login":"ts-node examples/serve-login.ts","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","example:device-login":"ts-node examples/device-login.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e99246e-d378-4383-9a90-bbe05fd85df0"}},"repository":{"url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git","type":"git"},"_npmVersion":"11.9.0","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","vitest":"4.0.18","express":"5.2.1","globals":"17.2.0","ts-node":"10.9.2","supertest":"7.2.2","@eslint/js":"9.39.2","playwright":"1.58.0","typescript":"5.9.3","@types/cors":"2.8.19","@types/node":"25.1.0","@types/express":"5.0.6","@vitest/browser":"4.0.18","async-test-util":"2.5.0","@types/supertest":"6.0.3","typescript-eslint":"8.54.0","start-server-and-test":"2.1.3","@vitest/browser-playwright":"4.0.18","@microsoft/microsoft-graph-types":"2.43.1"},"peerDependencies":{"express":"5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/microsoft-onedrive-mock_1.0.2_1772727299562_0.0859582987966141","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"microsoft-onedrive-mock","version":"1.0.3","keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"author":{"name":"pubkey"},"license":"MIT","_id":"microsoft-onedrive-mock@1.0.3","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"dist":{"shasum":"d1da0e3084d1c1482da7364a85ca0c366755ffac","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.3.tgz","fileCount":13,"integrity":"sha512-M+f9bFWjuVR2/kJ2zJalm/ZEHwFgZ67ZryUeJygkOT5UJfIorghumXzf8pSRV9p4EQQNqSPmtbRZH7A3SCQxnw==","signatures":[{"sig":"MEUCIQDTkUsPEuEZnN+Tnlx1LLIva2CDw5OjF2YOTGDgpOkcGgIgNPIdt1A4xKZk9T6gPNFkfeV5Tq1E0ltIJuj0lB/n5p4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/microsoft-onedrive-mock@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":46298},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"8901fce11f2c405d8977ecb13497944b9258f092","scripts":{"dev":"ts-node src/index.ts","lint":"eslint .","test":"TEST_TARGET=mock vitest run","build":"tsc","start":"node dist/index.js","lint:fix":"eslint . --fix","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","example:login":"ts-node examples/serve-login.ts","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","example:device-login":"ts-node examples/device-login.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e99246e-d378-4383-9a90-bbe05fd85df0"}},"repository":{"url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git","type":"git"},"_npmVersion":"11.9.0","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","vitest":"4.0.18","express":"5.2.1","globals":"17.2.0","ts-node":"10.9.2","supertest":"7.2.2","@eslint/js":"9.39.2","playwright":"1.58.0","typescript":"5.9.3","@types/cors":"2.8.19","@types/node":"25.1.0","@types/express":"5.0.6","@vitest/browser":"4.0.18","async-test-util":"2.5.0","@types/supertest":"6.0.3","typescript-eslint":"8.54.0","start-server-and-test":"2.1.3","@vitest/browser-playwright":"4.0.18","@microsoft/microsoft-graph-types":"2.43.1"},"peerDependencies":{"express":"5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/microsoft-onedrive-mock_1.0.3_1772900460668_0.16317473287536233","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"microsoft-onedrive-mock","version":"1.0.4","keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"author":{"name":"pubkey"},"license":"MIT","_id":"microsoft-onedrive-mock@1.0.4","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"dist":{"shasum":"62fe313d7c3dd584068823ecd31b4a611d877228","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.4.tgz","fileCount":13,"integrity":"sha512-+9VmoSEKNX8Igw/ehWVmV+jNcOKX9aHB9Ifp1NuKjAxsIbZeuQaeEw04x5mAjIOs4qWDJtpQQShcP9TuMWD0RA==","signatures":[{"sig":"MEUCIDNWVi/029c33ctwWzI1dOnUZBswVhTCI5CZGoUiBI6wAiEAuRoFDb9UE0OVC7Ce++IZYcvt/spWxrDHIVtLzfaigeU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/microsoft-onedrive-mock@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":47467},"main":"dist/index.js","type":"commonjs","types":"dist/index.d.ts","gitHead":"36359347321b2b64b107fcb4c55109672482a53d","scripts":{"dev":"ts-node src/index.ts","lint":"eslint .","test":"TEST_TARGET=mock vitest run","build":"tsc","start":"node dist/index.js","lint:fix":"eslint . --fix","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","example:login":"ts-node examples/serve-login.ts","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","example:device-login":"ts-node examples/device-login.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e99246e-d378-4383-9a90-bbe05fd85df0"}},"repository":{"url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git","type":"git"},"_npmVersion":"11.9.0","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"devDependencies":{"cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","vitest":"4.0.18","express":"5.2.1","globals":"17.2.0","ts-node":"10.9.2","supertest":"7.2.2","@eslint/js":"9.39.2","playwright":"1.58.0","typescript":"5.9.3","@types/cors":"2.8.19","@types/node":"25.1.0","@types/express":"5.0.6","@vitest/browser":"4.0.18","async-test-util":"2.5.0","@types/supertest":"6.0.3","typescript-eslint":"8.54.0","start-server-and-test":"2.1.3","@vitest/browser-playwright":"4.0.18","@microsoft/microsoft-graph-types":"2.43.1"},"peerDependencies":{"express":"5.2.1"},"_npmOperationalInternal":{"tmp":"tmp/microsoft-onedrive-mock_1.0.4_1772914310301_0.7584418233503576","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"microsoft-onedrive-mock","version":"1.0.5","description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","start":"node dist/index.js","dev":"ts-node src/index.ts","test":"TEST_TARGET=mock vitest run","test:slow":"LATENCY=20 vitest run","test:browser":"PORT=3006 start-server-and-test dev http://localhost:3006 'TEST_TARGET=mock BROWSER_ENABLED=true vitest run --browser --no-file-parallelism'","test:browser:real":"TEST_TARGET=real BROWSER_ENABLED=true vitest run --browser","test:real":"ts-node scripts/check-token.ts && TEST_TARGET=real vitest run","example:login":"ts-node examples/serve-login.ts","example:device-login":"ts-node examples/device-login.ts","lint":"eslint .","lint:fix":"eslint . --fix"},"repository":{"type":"git","url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git"},"keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"author":{"name":"pubkey"},"license":"MIT","bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","type":"commonjs","peerDependencies":{"express":"5.2.1"},"devDependencies":{"@eslint/js":"9.39.2","@microsoft/microsoft-graph-types":"2.43.1","@types/cors":"2.8.19","@types/express":"5.0.6","@types/node":"25.1.0","@types/supertest":"6.0.3","@vitest/browser":"4.0.18","@vitest/browser-playwright":"4.0.18","async-test-util":"2.5.0","cors":"2.8.6","dotenv":"17.2.3","eslint":"9.39.2","express":"5.2.1","globals":"17.2.0","playwright":"1.58.0","start-server-and-test":"2.1.3","supertest":"7.2.2","ts-node":"10.9.2","typescript":"5.9.3","typescript-eslint":"8.54.0","vitest":"4.0.18"},"gitHead":"a60503b4532ff3912781d37cd725c31de427db19","_id":"microsoft-onedrive-mock@1.0.5","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-y6uWEfnAe3T8QbMJSTwP+xRt/maG8VY+7L8B+k+1kHBnK+CHJLmZRsmWrnO4O8Eozg9W6W0coRBYCmynY/tvlw==","shasum":"a06d3234917643ddf8a865a260005f018774abd5","tarball":"https://registry.npmjs.org/microsoft-onedrive-mock/-/microsoft-onedrive-mock-1.0.5.tgz","fileCount":13,"unpackedSize":48443,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/microsoft-onedrive-mock@1.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCSdhfVBO44XH8G15MrfNT/NDKhlO6ZJSz+YPmtEnzdGgIgTZvzQBQLYw02eLRfNvPTtgWsLUTwJh3SBUSNHVn0T2k="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0e99246e-d378-4383-9a90-bbe05fd85df0"}},"directories":{},"maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/microsoft-onedrive-mock_1.0.5_1772984877402_0.2776127951043712"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-03T14:14:04.515Z","modified":"2026-03-08T15:47:57.815Z","1.0.0":"2026-03-03T14:14:04.755Z","1.0.1":"2026-03-05T14:56:05.051Z","1.0.2":"2026-03-05T16:14:59.706Z","1.0.3":"2026-03-07T16:21:00.810Z","1.0.4":"2026-03-07T20:11:50.482Z","1.0.5":"2026-03-08T15:47:57.554Z"},"bugs":{"url":"https://github.com/pubkey/microsoft-onedrive-mock/issues"},"author":{"name":"pubkey"},"license":"MIT","homepage":"https://github.com/pubkey/microsoft-onedrive-mock#readme","keywords":["microsoft-onedrive","onedrive","mock","testing","server","api","simulator","rxdb"],"repository":{"type":"git","url":"git+https://github.com/pubkey/microsoft-onedrive-mock.git"},"description":"Mock-Server that simulates being Microsoft OneDrive. Used for testing.","maintainers":[{"name":"pubkey","email":"dieser.daniel@outlook.com"}],"readme":"# microsoft-onedrive-mock\n\n<br />\n\n<p style=\"text-align: center;\">\nMock-Server that simulates being Microsoft OneDrive (Graph API).<br />\nUsed for testing the <a href=\"https://rxdb.info/\" target=\"_blank\">RxDB OneDrive-Sync</a>.<br />\nSister project to <a href=\"https://github.com/pubkey/google-drive-mock\" target=\"_blank\">google-drive-mock</a>.<br />\nMostly Vibe-Coded.<br />\n</p>\n\n## Installation\n\n```bash\nnpm install microsoft-onedrive-mock\n```\n\n## Usage\n\n```typescript\nimport { startServer } from 'microsoft-onedrive-mock';\n\n// start the server\nconst port = 3000;\nconst server = startServer(port);\n\n// Read the drive root\nconst readResponse = await fetch(`http://localhost:3000/v1.0/me/drive/root`, {\n    method: 'GET',\n    headers: {\n        'Authorization': 'Bearer valid-token'\n    }\n});\nconst folderContent = await readResponse.json();\nconsole.log('Read Root:', folderContent);\n\n// Stop the server\nserver.close();\n\n```\n\n## Tech\n\n- TypeScript\n- Express\n- Vitest\n\n## Browser Testing\n\nTo run tests inside a headless browser (Chromium):\n\n```bash\nnpm run test:browser\n```\n\n## Real Microsoft Graph API Testing\n\nTo run tests against the real Microsoft Graph / OneDrive API instead of the mock:\n\n1. Create a `.ENV` file (see `.ENV_EXAMPLE`):\n   ```\n   TEST_TARGET=real\n   ONEDRIVE_TOKEN=your-access-token\n   ```\n2. You can generate a valid `ONEDRIVE_TOKEN` quickly by running the included login script and following the browser prompts:\n   ```bash\n   npm run example:login\n   ```\n3. Run tests:\n   ```bash\n   npm run test:real\n   ```\n\n## Contributing\n\nGitHub issues for this project are closed. If you find a bug, please create a Pull Request with a test case reproducing the issue.","readmeFilename":"README.md"}