File tree 4 files changed +29
-1
lines changed
4 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
matrix :
14
14
node : [18, 20, 'lts/*']
15
+ os : [ubuntu-latest]
16
+ include :
17
+ - os : macos-latest
18
+ node : ' lts/*'
19
+ - os : windows-latest
20
+ node : ' lts/*'
15
21
steps :
16
22
- uses : actions/checkout@v4
17
23
- uses : actions/setup-node@v4
Original file line number Diff line number Diff line change
1
+ const plugin = require ( 'postcss-normalize' ) ;
2
+ const postcss = require ( 'postcss' ) ;
3
+ const assert = require ( 'node:assert' ) ;
4
+
5
+ postcss ( [ plugin ( ) ] ) . process ( '@import "sanitize.css"' , { from : null } ) . then ( ( result ) => {
6
+ assert . ok ( result . css . includes ( ':where(' ) ) ;
7
+ } ) ;
8
+
9
+ postcss ( [ plugin ( ) ] ) . process ( '@import "normalize.css"' , { from : null } ) . then ( ( result ) => {
10
+ assert . ok ( result . css . includes ( ':where(' ) ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import plugin from 'postcss-normalize' ;
2
+ import postcss from 'postcss' ;
3
+ import assert from 'node:assert' ;
4
+
5
+ postcss ( [ plugin ( ) ] ) . process ( '@import "sanitize.css"' , { from : null } ) . then ( ( result ) => {
6
+ assert . ok ( result . css . includes ( ':where(' ) ) ;
7
+ } ) ;
8
+
9
+ postcss ( [ plugin ( ) ] ) . process ( '@import "normalize.css"' , { from : null } ) . then ( ( result ) => {
10
+ assert . ok ( result . css . includes ( ':where(' ) ) ;
11
+ } ) ;
Original file line number Diff line number Diff line change 23
23
"scripts" : {
24
24
"prepublishOnly" : " npm test" ,
25
25
"build" : " rollup --config .rollup.mjs --silent" ,
26
- "test" : " npm run build && npm run tape" ,
26
+ "test" : " npm run build && npm run tape && node .test.cjs && node .test.mjs " ,
27
27
"tape" : " postcss-tape"
28
28
},
29
29
"engines" : {
You can’t perform that action at this time.
0 commit comments