File tree 5 files changed +145
-791
lines changed
5 files changed +145
-791
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" test" />
3
+ </template >
4
+
5
+ <style lang="sass">
6
+ .test
7
+ background-color : blue
8
+ </style >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" test" />
3
+ </template >
4
+
5
+ <style lang="scss">
6
+ .test {
7
+ background-color : blue ;
8
+ }
9
+ </style >
Original file line number Diff line number Diff line change 13
13
"devDependencies" : {
14
14
"@babel/core" : " ^7.9.0" ,
15
15
"@babel/preset-env" : " ^7.9.0" ,
16
- "@vue/test-utils" : " ^1.1.0" ,
16
+ "@testing-library/vue" : " ^5.8.2" ,
17
+ "@vue/test-utils" : " ^1.3.0" ,
17
18
"jest" : " 27.x" ,
18
19
"less" : " ^3.9.0" ,
19
20
"postcss" : " ^7.0.13" ,
Original file line number Diff line number Diff line change
1
+ import { render } from '@testing-library/vue'
2
+ import ScssVTL from './components/ScssVTL'
3
+ import SassVTL from './components/SassVTL'
4
+
5
+ test ( 'processes Sass' , ( ) => {
6
+ render ( SassVTL )
7
+
8
+ const elementBackgroundColor = window . getComputedStyle (
9
+ document . querySelector ( '.test' )
10
+ ) . backgroundColor
11
+ expect ( elementBackgroundColor ) . toEqual ( 'blue' )
12
+ } )
13
+
14
+ test ( 'processes Scss' , ( ) => {
15
+ render ( ScssVTL )
16
+
17
+ const elementBackgroundColor = window . getComputedStyle (
18
+ document . querySelector ( '.test' )
19
+ ) . backgroundColor
20
+ expect ( elementBackgroundColor ) . toEqual ( 'blue' )
21
+ } )
You can’t perform that action at this time.
0 commit comments