Commit 04a3233
authored
feat: support TS in templates for @vue/vue3-jest (#394)
Vue 3.2.13 introduced the support of TS expressions in templates, with a new `isTs` option of the compiler.
(See [the relevant commit](vuejs/core@0dc521b))
vue-loader and vite chose to enable this by default if the script uses TS:
- [vue-loader](vuejs/vue-loader@7613534)
- [vite](vitejs/vite@01fa2ab)
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.1 parent a59135a commit 04a3233
File tree
2 files changed
+11
-1
lines changed- e2e/3.x/typescript/src/components
- packages/vue3-jest/lib
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| |||
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| 110 | + | |
103 | 111 | | |
104 | 112 | | |
105 | 113 | | |
| |||
0 commit comments