| 6 | |
| 7 | // All modules imported from built dist (matches the suite's convention). |
| 8 | async function loadModules() { |
| 9 | const { loadConfig, mergeCliConfig, safeParseConfigText } = await import("../dist/config.js"); |
| 10 | const { resolveNativeAst, nativeEnabledFor, isStrict, reportNativeDiagnostics } = |
| 11 | await import("../dist/ast/native-loader.js"); |
| 12 | const { setNativePluginProvider, resetNativePluginProvider } = |
| 13 | await import("../dist/wasm/plugin-host.js"); |
| 14 | const { collectFiles, detectProject } = await import("../dist/scanner.js"); |
| 15 | const { detectRoutes } = await import("../dist/detectors/routes.js"); |
| 16 | const { detectNative } = await import("../dist/detectors/native.js"); |
| 17 | return { |
| 18 | loadConfig, mergeCliConfig, safeParseConfigText, |
| 19 | resolveNativeAst, nativeEnabledFor, isStrict, reportNativeDiagnostics, |
| 20 | setNativePluginProvider, resetNativePluginProvider, |
| 21 | collectFiles, detectProject, detectRoutes, detectNative, |
| 22 | }; |
| 23 | } |
| 24 | |
| 25 | const FASTAPI_FIXTURE = ` |
| 26 | from fastapi import FastAPI, APIRouter |