-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tape.js
55 lines (54 loc) · 1.72 KB
/
.tape.js
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
const path = require('path');
module.exports = {
'basic/test': {
message: 'can inline rules from same file',
},
'fromOtherFile/test': {
message: 'can inline rules from other file',
},
'copiesAllDeclarations/test': {
message: 'copies all statements, even if they are spread throughout multiple blocks',
},
'removesRuleIfCannotFindClass/test': {
message: 'removes statements that cannot be resolved',
warnings: {
text: "Could not find class '.c'",
},
},
'removesRuleIfCannotFindClassInOtherFile/test': {
message: 'removes statements that cannot be resolved in other files',
warnings: {
text: "Could not find class '.c' in file './dummy.css'",
},
},
'removesRuleIfCannotFindFile/test': {
message: 'removes statements if non-existent files are provided',
warnings: {
text: "Could not find file './dummy.css'",
},
},
'doesNotOverwriteOverlappingNames/test': {
message: 'does not overwrite overlapping names',
},
'supportsMediaQueries/test': {
message: 'supportes media queries',
},
'supportsCombinatorSelectors/test': {
message: 'supports combinator selectors',
},
'supportsMultipleClassSelector/test': {
message: 'supports multiple class selectors',
},
'complex/test': {
message: 'all combined',
},
'resolvesFiles/test': {
message: 'knows how to resolve files',
options: {
paths: [
path.join(process.cwd(), '/test/resolvesFiles/some/other/path'),
path.join(process.cwd(), '/test/resolvesFiles/weird'),
],
},
},
};