You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Example repositories testing Vue components with jest and vue-jest:
47
47
48
48
## Supported langs
49
49
50
-
vue-jest compiles the script and template of SFCs into a JavaScript file that Jest can run. **It does not currently compile the style section**.
50
+
vue-jest compiles the script and template of SFCs into a JavaScript file that Jest can run. **Currently, SCSS and Stylus are the only style languages that are compiled**.
51
51
52
52
### Supported script languages
53
53
@@ -59,3 +59,26 @@ vue-jest compiles the script and template of SFCs into a JavaScript file that Je
59
59
-**pug** (`lang="pug"`)
60
60
-**jade** (`lang="jade"`)
61
61
-**haml** (`lang="haml"`)
62
+
63
+
### Supported style languages
64
+
65
+
-**stylus** (`lang="stylus"`, `lang="styl"`)
66
+
-**scss** (`lang="scss"`)
67
+
- To import globally included files (ie. variables, mixins, etc.), include them in the Jest configuration at `jest.globals['vue-jest'].resources.scss`:
0 commit comments