-
-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy path_tape.mjs
76 lines (75 loc) · 1.6 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
import { declarationClonerPlugin, postcssTape } from '@csstools/postcss-tape';
import plugin from 'css-blank-pseudo';
postcssTape(plugin, { skipPackageNameCheck: true })({
'basic': {
message: 'supports basic usage',
},
'basic:replacewith': {
message: 'supports { replaceWith: ".css-blank" } usage',
options: {
replaceWith: '.css-blank',
},
},
'basic:preserve': {
message: 'supports { preserve: false } usage',
options: {
preserve: false,
},
},
'basic:wrong-replacewith': {
message: 'correctly warns when replace with is invalid',
warnings: 1,
options: {
replaceWith: '#css-blank',
},
},
'basic:disable-polyfill-ready-class': {
message: 'supports { disablePolyfillReadyClass: true } usage',
options: {
disablePolyfillReadyClass: true,
},
},
'basic:with-cloned-declarations': {
message: 'doesn\'t cause duplicate CSS',
plugins: [
declarationClonerPlugin,
plugin({
preserve: true,
}),
],
},
'invalid-selector': {
message: 'warns on invalid selectors',
warnings: 1,
},
'examples/example': {
message: 'minimal example',
},
'examples/example:preserve-false': {
message: 'minimal example',
options: {
preserve: false,
},
},
'examples/example:replacewith': {
message: 'minimal example',
options: {
replaceWith: '.css-blank',
},
},
'examples/example:disable-polyfill-ready-class': {
message: 'minimal example',
options: {
disablePolyfillReadyClass: true,
},
},
'browser': {
message: 'css for browser tests',
},
'browser:replacewith': {
message: 'css for browser tests',
options: {
replaceWith: '.css-blank',
},
},
});