(options = {})
| 8 | |
| 9 | // Utility to create test servers with ESM modules |
| 10 | export async function createTestServer (options = {}) { |
| 11 | const { default: createApp } = await import('../index.mjs') |
| 12 | |
| 13 | const defaultOptions = { |
| 14 | port: 0, // Random port |
| 15 | serverUri: 'https://localhost', |
| 16 | webid: true, |
| 17 | multiuser: false, |
| 18 | ...options |
| 19 | } |
| 20 | |
| 21 | const app = createApp(defaultOptions) |
| 22 | return app |
| 23 | } |
| 24 | |
| 25 | // Utility to test ESM import functionality |
| 26 | export async function testESMImport (modulePath) { |
nothing calls this directly
no test coverage detected