(name: string, files: Record<string, string>)
| 58 | } |
| 59 | |
| 60 | async function writeFixture(name: string, files: Record<string, string>): Promise<string> { |
| 61 | const dir = join(tmpdir(), `codesight-native-${name}-${process.pid}`); |
| 62 | await mkdir(dir, { recursive: true }); |
| 63 | for (const [f, content] of Object.entries(files)) { |
| 64 | await writeFile(join(dir, f), content); |
| 65 | } |
| 66 | return dir; |
| 67 | } |
| 68 | |
| 69 | describe("native-ast config resolution", () => { |
| 70 | it("safeParseConfigText extracts nested nativeAst without a TS loader", async () => { |
no test coverage detected