| 101 | } |
| 102 | |
| 103 | func GetFileMapWithBuild(files FileMap, commandLineArgs []string) FileMap { |
| 104 | sys := newTestSys(&tscInput{ |
| 105 | files: maps.Clone(files), |
| 106 | }, false) |
| 107 | execute.CommandLine(context.Background(), sys, commandLineArgs, sys) |
| 108 | sys.fs.writtenFiles.Range(func(key string) bool { |
| 109 | if text, ok := sys.fsFromFileMap().ReadFile(key); ok { |
| 110 | files[key] = text |
| 111 | } |
| 112 | return true |
| 113 | }) |
| 114 | return files |
| 115 | } |
| 116 | |
| 117 | func newTestSys(tscInput *tscInput, forIncrementalCorrectness bool) *TestSys { |
| 118 | cwd := tscInput.cwd |