-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path_tape.mjs
77 lines (76 loc) · 1.69 KB
/
_tape.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import { declarationClonerPlugin, postcssTape } from '@csstools/postcss-tape';
import plugin from '@csstools/postcss-is-pseudo-class';
postcssTape(plugin)({
basic: {
message: 'supports basic usage',
},
'basic:preserve': {
message: 'supports basic usage with { preserve: true }',
options: {
preserve: true,
},
},
'basic:does-not-exist': {
message: 'supports basic usage with { specificityMatchingName: \'something-random\' }',
options: {
specificityMatchingName: 'something-random',
},
},
'basic:oncomplex:warning': {
message: 'warns on complex selectors',
warnings: 9,
options: {
onComplexSelector: 'warning',
},
},
'basic:oncomplex:no-warning': {
message: 'can silence warnings on complex selectors',
},
'basic:with-cloned-declarations': {
message: 'doesn\'t cause duplicate CSS',
plugins: [
declarationClonerPlugin,
plugin({
preserve: true,
}),
],
},
'browser': {
message: 'prepare CSS for chrome test',
options: {
preserve: false,
},
},
'compound-after-complex-is': {
message: 'can handle compound selectors after complex selectors in :is()',
options: {
preserve: false,
},
},
'complex': {
message: 'supports complex selectors',
options: {
preserve: false,
},
},
'generated-selector-class-function-cases': {
message: 'supports generated selector class function cases',
warnings: 1,
options: {
preserve: true,
},
},
example: {
message: 'minimal example',
},
'pseudo-element:warning': {
message: 'warns when pseudo elements are found',
warnings: 4,
options: {
onPseudoElement: 'warning',
},
},
'pseudo-element:no-warning': {
message: 'can silence warnings when pseudo elements are found',
},
});