{ // Type-checks the load tests' k6 scripts (#392), which run in k6's own JavaScript runtime, not // Node's: its modules and globals (__ENV, __VU) come from @types/k6, and k6 strips the types // itself. tests/load/run.ts, the harness, is Node's and in tsconfig.tools.json. "compilerOptions": { "target": "es2022", "lib": ["es2022"], "module": "esnext", "moduleResolution": "bundler", "allowImportingTsExtensions": true, "noEmit": true, "strict": true, "erasableSyntaxOnly": true, "skipLibCheck": true, "types": ["k6"] }, "include": ["tests/load/*.ts"], "exclude": ["tests/load/run.ts"] }