vuejs / vue-jest

Jest Vue transformer
MIT License
746 stars 157 forks source link

--watch doesn't work when change external <script>, imported in single-file-component with src attribute #447

Open paver-dev opened 2 years ago

paver-dev commented 2 years ago

I've tried this with some different @vue/cli configurations: vue2 + typeScript + babel + Jest vue2 + babel + Jest also tried my custom configuration. Every time got same issue. If make some test-breaking or test-fixing change in external script section (<script src=...) of sfc .vue, it doesn't affect test result in watch mode. Unless i make some changes in any inline section of .vue, i.e. template. Or rerun test.

Manual reproduction 1.Create new project via @vue-cli yarn global add @vue/cli vue create my-project with any vue2 configuration, i.e. vue2 + babel + Jest

2.Create some single-file-component with script loaded via Githubissues.

  • Githubissues is a development platform for aggregating issues.