This commit enables the same behavior in vue-jest: if the script is using TS, then the isTs option is passed to the compiler.
TS developers won't have to worry about setting the options themselves, making it coherent with what vue-loader and vite do.
Vue 3.2.13 introduced the support of TS expressions in templates, with a new
isTs
option of the compiler. (See the relevant commit)vue-loader and vite chose to enable this by default if the script uses TS:
This commit enables the same behavior in vue-jest: if the script is using TS, then the
isTs
option is passed to the compiler. TS developers won't have to worry about setting the options themselves, making it coherent with what vue-loader and vite do.