Open nlfurniss opened 1 year ago
Failure when updating is
Expected: ""
Received: "Preprocessing error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
full stack is
Error: Cannot overwrite a zero-length range – use appendLeft or prependRight instead
at MagicString.overwrite (/Users/gcsapo/Documents/eslint-plugin-ember/node_modules/ember-template-imports/node_modules/magic-string/src/MagicString.js:344:10)
at ensureBackticksEscaped (/Users/gcsapo/Documents/eslint-plugin-ember/node_modules/ember-template-imports/lib/preprocess-embedded-templates.js:137:7)
at replaceMatch (/Users/gcsapo/Documents/eslint-plugin-ember/node_modules/ember-template-imports/lib/preprocess-embedded-templates.js:54:5)
at preprocessEmbeddedTemplates (/Users/gcsapo/Documents/eslint-plugin-ember/node_modules/ember-template-imports/lib/preprocess-embedded-templates.js:114:34)
at preprocessEmbeddedTemplates (/Users/gcsapo/Documents/eslint-plugin-ember/lib/preprocessors/glimmer.js:63:20)
This test fails when
ember-template-imports
was upgraded from 3.1.1 to 3.1.2.If the scenario is changed to look like this:
then the test passes, though it is not yet clear why.