File tree 4 files changed +16
-3
lines changed
4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ jest-vue compiles the script and template of SFCs into a JavaScript file that Je
34
34
### Supported script languages
35
35
36
36
- ** typescript** (` lang="ts" ` , ` lang="typescript" ` )
37
- - ** coffeescript** (` lang="coffee" ` )
37
+ - ** coffeescript** (` lang="coffee" ` , ` lang="coffeescript" ` )
38
38
39
39
### Supported template languages
40
40
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function processScript (scriptPart) {
14
14
return compileTypescript ( scriptPart . content )
15
15
}
16
16
17
- if ( scriptPart . lang === 'coffee' ) {
17
+ if ( scriptPart . lang === 'coffee' || scriptPart . lang === 'coffeescript' ) {
18
18
return compileCoffeeScript ( scriptPart . content )
19
19
}
20
20
Original file line number Diff line number Diff line change 1
1
import { shallow } from 'vue-test-utils'
2
2
import Coffee from './resources/Coffee.vue'
3
+ import CoffeeScript from './resources/CoffeeScript.vue'
3
4
4
- test ( 'processes .vue file with coffee script ' , ( ) => {
5
+ test ( 'processes .vue file with lang set to coffeescript ' , ( ) => {
5
6
shallow ( Coffee )
6
7
} )
8
+
9
+ test ( 'processes .vue file with lang set to coffeescript' , ( ) => {
10
+ shallow ( CoffeeScript )
11
+ } )
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div />
3
+ </template >
4
+
5
+ <script lang="coffeescript">
6
+ module .exports =
7
+ data: - > {}
8
+ </script >
You can’t perform that action at this time.
0 commit comments