Skip to content

Commit f4d1a2e

Browse files
committed
update README for supported style languages
1 parent 6c8f485 commit f4d1a2e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Example repositories testing Vue components with jest and vue-jest:
4747

4848
## Supported langs
4949

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**.
5151

5252
### Supported script languages
5353

@@ -59,3 +59,22 @@ vue-jest compiles the script and template of SFCs into a JavaScript file that Je
5959
- **pug** (`lang="pug"`)
6060
- **jade** (`lang="jade"`)
6161
- **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 `vueJest` configuration resources:
68+
```
69+
// package.json
70+
{
71+
"vueJest": {
72+
resources: {
73+
"scss": [
74+
"./node_modules/package/_mixins.scss",
75+
"./src/assets/css/globals.scss"
76+
]
77+
}
78+
}
79+
}
80+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.transition {
2+
transition: all 1s ease-out;
3+
}

0 commit comments

Comments
 (0)