(s: MagicString)
| 235 | const original = 'const a = 1;\nconst b = 2;\n\nexport { a, b };\n' |
| 236 | |
| 237 | const build = (s: MagicString) => { |
| 238 | s.prepend('// header\n') |
| 239 | s.appendLeft(12, '\nconst inserted = 3;') |
| 240 | s.overwrite(13, 25, 'const b = 20;\nconst c = 30;') |
| 241 | s.append('// footer\n') |
| 242 | } |
| 243 | |
| 244 | const generated = new MagicString(original) |
| 245 | build(generated) |
no test coverage detected