Skip to content

Commit a5fd925

Browse files
committed
☕ Stop using --shuffle on test
Not sure but `--shuffle` may break the order of snapshot records?
1 parent 172e23a commit a5fd925

File tree

5 files changed

+119
-119
lines changed

5 files changed

+119
-119
lines changed

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"tasks": {
77
"build-npm": "deno run -A scripts/build_npm.ts $(git describe --tags --always --dirty)",
8-
"test": "deno test -A --parallel --shuffle --doc",
8+
"test": "deno test -A --parallel --doc",
99
"test:coverage": "deno task test --coverage=.coverage",
1010
"check": "deno check ./**/*.ts",
1111
"coverage": "deno coverage .coverage --exclude=is_bench.ts",
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
export const snapshot = {};
22

3-
snapshot[`isAllOf<T> > returns properly named function 1`] = `
4-
"isObjectOf({
5-
a: isNumber,
6-
b: isString
7-
})"
8-
`;
9-
103
snapshot[`isOneOf<T> > returns properly named function 1`] = `
114
"isUnionOf([
125
isNumber,
136
isString,
147
isBoolean
158
])"
169
`;
10+
11+
snapshot[`isAllOf<T> > returns properly named function 1`] = `
12+
"isObjectOf({
13+
a: isNumber,
14+
b: isString
15+
})"
16+
`;

is/__snapshots__/annotation_test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
export const snapshot = {};
22

3+
snapshot[`isOptionalOf<T> > returns properly named function 1`] = `"isOptionalOf(isNumber)"`;
4+
5+
snapshot[`isOptionalOf<T> > returns properly named function 2`] = `"isOptionalOf(isNumber)"`;
6+
37
snapshot[`isUnwrapOptionalOf<T> > returns properly named function 1`] = `"isNumber"`;
48
59
snapshot[`isUnwrapOptionalOf<T> > returns properly named function 2`] = `"isNumber"`;
@@ -13,7 +17,3 @@ snapshot[`isReadonlyOf<T> > returns properly named function 2`] = `"isReadonlyOf
1317
snapshot[`isUnwrapReadonlyOf<T> > returns properly named function 1`] = `"isNumber"`;
1418
1519
snapshot[`isUnwrapReadonlyOf<T> > returns properly named function 2`] = `"isReadonlyOf(isNumber)"`;
16-
17-
snapshot[`isOptionalOf<T> > returns properly named function 1`] = `"isOptionalOf(isNumber)"`;
18-
19-
snapshot[`isOptionalOf<T> > returns properly named function 2`] = `"isOptionalOf(isNumber)"`;
Lines changed: 80 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
export const snapshot = {};
22

3-
snapshot[`isInstanceOf<T> > returns properly named function 1`] = `"isInstanceOf(Date)"`;
3+
snapshot[`isArrayOf<T> > returns properly named function 1`] = `"isArrayOf(isNumber)"`;
44
5-
snapshot[`isInstanceOf<T> > returns properly named function 2`] = `"isInstanceOf((anonymous))"`;
5+
snapshot[`isArrayOf<T> > returns properly named function 2`] = `"isArrayOf((anonymous))"`;
6+
7+
snapshot[`isSetOf<T> > returns properly named function 1`] = `"isSetOf(isNumber)"`;
8+
9+
snapshot[`isSetOf<T> > returns properly named function 2`] = `"isSetOf((anonymous))"`;
610
711
snapshot[`isTupleOf<T> > returns properly named function 1`] = `
812
"isTupleOf([
@@ -26,17 +30,49 @@ snapshot[`isTupleOf<T> > returns properly named function 3`] = `
2630
])"
2731
`;
2832
29-
snapshot[`isRecordLikeOf<T> > returns properly named function 1`] = `"isRecordLikeOf(isNumber, undefined)"`;
33+
snapshot[`isTupleOf<T, E> > returns properly named function 1`] = `
34+
"isTupleOf([
35+
isNumber,
36+
isString,
37+
isBoolean
38+
], isArray)"
39+
`;
3040
31-
snapshot[`isRecordLikeOf<T> > returns properly named function 2`] = `"isRecordLikeOf((anonymous), undefined)"`;
41+
snapshot[`isTupleOf<T, E> > returns properly named function 2`] = `"isTupleOf([(anonymous)], isArrayOf(isString))"`;
3242
33-
snapshot[`isRecordLikeOf<T, K> > returns properly named function 1`] = `"isRecordLikeOf(isNumber, isString)"`;
43+
snapshot[`isTupleOf<T, E> > returns properly named function 3`] = `
44+
"isTupleOf([
45+
isTupleOf([
46+
isTupleOf([
47+
isNumber,
48+
isString,
49+
isBoolean
50+
], isArray)
51+
], isArray)
52+
])"
53+
`;
3454
35-
snapshot[`isRecordLikeOf<T, K> > returns properly named function 2`] = `"isRecordLikeOf((anonymous), isString)"`;
55+
snapshot[`isReadonlyTupleOf<T> > returns properly named function 1`] = `
56+
"isReadonlyOf(isTupleOf([
57+
isNumber,
58+
isString,
59+
isBoolean
60+
]))"
61+
`;
3662
37-
snapshot[`isMapOf<T, K> > returns properly named function 1`] = `"isMapOf(isNumber, isString)"`;
63+
snapshot[`isReadonlyTupleOf<T> > returns properly named function 2`] = `"isReadonlyOf(isTupleOf([(anonymous)]))"`;
3864
39-
snapshot[`isMapOf<T, K> > returns properly named function 2`] = `"isMapOf((anonymous), isString)"`;
65+
snapshot[`isReadonlyTupleOf<T> > returns properly named function 3`] = `
66+
"isReadonlyOf(isTupleOf([
67+
isReadonlyOf(isTupleOf([
68+
isReadonlyOf(isTupleOf([
69+
isNumber,
70+
isString,
71+
isBoolean
72+
]))
73+
]))
74+
]))"
75+
`;
4076
4177
snapshot[`isReadonlyTupleOf<T, E> > returns properly named function 1`] = `
4278
"isReadonlyOf(isTupleOf([
@@ -60,10 +96,42 @@ snapshot[`isReadonlyTupleOf<T, E> > returns properly named function 3`] = `
6096
], isArray))"
6197
`;
6298
99+
snapshot[`isUniformTupleOf<T> > returns properly named function 1`] = `"isUniformTupleOf(3, isAny)"`;
100+
101+
snapshot[`isUniformTupleOf<T> > returns properly named function 2`] = `"isUniformTupleOf(3, isNumber)"`;
102+
103+
snapshot[`isUniformTupleOf<T> > returns properly named function 3`] = `"isUniformTupleOf(3, (anonymous))"`;
104+
105+
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 1`] = `"isReadonlyOf(isUniformTupleOf(3, isAny))"`;
106+
107+
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 2`] = `"isReadonlyOf(isUniformTupleOf(3, isNumber))"`;
108+
109+
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 3`] = `"isReadonlyOf(isUniformTupleOf(3, (anonymous)))"`;
110+
111+
snapshot[`isRecordOf<T> > returns properly named function 1`] = `"isRecordOf(isNumber, undefined)"`;
112+
113+
snapshot[`isRecordOf<T> > returns properly named function 2`] = `"isRecordOf((anonymous), undefined)"`;
114+
115+
snapshot[`isRecordOf<T, K> > returns properly named function 1`] = `"isRecordOf(isNumber, isString)"`;
116+
117+
snapshot[`isRecordOf<T, K> > returns properly named function 2`] = `"isRecordOf((anonymous), isString)"`;
118+
119+
snapshot[`isRecordLikeOf<T> > returns properly named function 1`] = `"isRecordLikeOf(isNumber, undefined)"`;
120+
121+
snapshot[`isRecordLikeOf<T> > returns properly named function 2`] = `"isRecordLikeOf((anonymous), undefined)"`;
122+
123+
snapshot[`isRecordLikeOf<T, K> > returns properly named function 1`] = `"isRecordLikeOf(isNumber, isString)"`;
124+
125+
snapshot[`isRecordLikeOf<T, K> > returns properly named function 2`] = `"isRecordLikeOf((anonymous), isString)"`;
126+
63127
snapshot[`isMapOf<T> > returns properly named function 1`] = `"isMapOf(isNumber, undefined)"`;
64128
65129
snapshot[`isMapOf<T> > returns properly named function 2`] = `"isMapOf((anonymous), undefined)"`;
66130
131+
snapshot[`isMapOf<T, K> > returns properly named function 1`] = `"isMapOf(isNumber, isString)"`;
132+
133+
snapshot[`isMapOf<T, K> > returns properly named function 2`] = `"isMapOf((anonymous), isString)"`;
134+
67135
snapshot[`isObjectOf<T> > returns properly named function 1`] = `
68136
"isObjectOf({
69137
a: isNumber,
@@ -82,10 +150,6 @@ snapshot[`isObjectOf<T> > returns properly named function 3`] = `
82150
})"
83151
`;
84152
85-
snapshot[`isRecordOf<T> > returns properly named function 1`] = `"isRecordOf(isNumber, undefined)"`;
86-
87-
snapshot[`isRecordOf<T> > returns properly named function 2`] = `"isRecordOf((anonymous), undefined)"`;
88-
89153
snapshot[`isStrictOf<T> > returns properly named function 1`] = `
90154
"isStrictOf(isObjectOf({
91155
a: isNumber,
@@ -104,6 +168,10 @@ snapshot[`isStrictOf<T> > returns properly named function 3`] = `
104168
}))"
105169
`;
106170
171+
snapshot[`isInstanceOf<T> > returns properly named function 1`] = `"isInstanceOf(Date)"`;
172+
173+
snapshot[`isInstanceOf<T> > returns properly named function 2`] = `"isInstanceOf((anonymous))"`;
174+
107175
snapshot[`isLiteralOf<T> > returns properly named function 1`] = `'isLiteralOf("hello")'`;
108176
109177
snapshot[`isLiteralOf<T> > returns properly named function 2`] = `"isLiteralOf(100)"`;
@@ -119,71 +187,3 @@ snapshot[`isLiteralOf<T> > returns properly named function 6`] = `"isLiteralOf(u
119187
snapshot[`isLiteralOf<T> > returns properly named function 7`] = `"isLiteralOf(Symbol(asdf))"`;
120188
121189
snapshot[`isLiteralOneOf<T> > returns properly named function 1`] = `'isLiteralOneOf(["hello", "world"])'`;
122-
123-
snapshot[`isReadonlyTupleOf<T> > returns properly named function 1`] = `
124-
"isReadonlyOf(isTupleOf([
125-
isNumber,
126-
isString,
127-
isBoolean
128-
]))"
129-
`;
130-
131-
snapshot[`isReadonlyTupleOf<T> > returns properly named function 2`] = `"isReadonlyOf(isTupleOf([(anonymous)]))"`;
132-
133-
snapshot[`isReadonlyTupleOf<T> > returns properly named function 3`] = `
134-
"isReadonlyOf(isTupleOf([
135-
isReadonlyOf(isTupleOf([
136-
isReadonlyOf(isTupleOf([
137-
isNumber,
138-
isString,
139-
isBoolean
140-
]))
141-
]))
142-
]))"
143-
`;
144-
145-
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 1`] = `"isReadonlyOf(isUniformTupleOf(3, isAny))"`;
146-
147-
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 2`] = `"isReadonlyOf(isUniformTupleOf(3, isNumber))"`;
148-
149-
snapshot[`isReadonlyUniformTupleOf<T> > returns properly named function 3`] = `"isReadonlyOf(isUniformTupleOf(3, (anonymous)))"`;
150-
151-
snapshot[`isUniformTupleOf<T> > returns properly named function 1`] = `"isUniformTupleOf(3, isAny)"`;
152-
153-
snapshot[`isUniformTupleOf<T> > returns properly named function 2`] = `"isUniformTupleOf(3, isNumber)"`;
154-
155-
snapshot[`isUniformTupleOf<T> > returns properly named function 3`] = `"isUniformTupleOf(3, (anonymous))"`;
156-
157-
snapshot[`isRecordOf<T, K> > returns properly named function 1`] = `"isRecordOf(isNumber, isString)"`;
158-
159-
snapshot[`isRecordOf<T, K> > returns properly named function 2`] = `"isRecordOf((anonymous), isString)"`;
160-
161-
snapshot[`isArrayOf<T> > returns properly named function 1`] = `"isArrayOf(isNumber)"`;
162-
163-
snapshot[`isArrayOf<T> > returns properly named function 2`] = `"isArrayOf((anonymous))"`;
164-
165-
snapshot[`isTupleOf<T, E> > returns properly named function 1`] = `
166-
"isTupleOf([
167-
isNumber,
168-
isString,
169-
isBoolean
170-
], isArray)"
171-
`;
172-
173-
snapshot[`isTupleOf<T, E> > returns properly named function 2`] = `"isTupleOf([(anonymous)], isArrayOf(isString))"`;
174-
175-
snapshot[`isTupleOf<T, E> > returns properly named function 3`] = `
176-
"isTupleOf([
177-
isTupleOf([
178-
isTupleOf([
179-
isNumber,
180-
isString,
181-
isBoolean
182-
], isArray)
183-
], isArray)
184-
])"
185-
`;
186-
187-
snapshot[`isSetOf<T> > returns properly named function 1`] = `"isSetOf(isNumber)"`;
188-
189-
snapshot[`isSetOf<T> > returns properly named function 2`] = `"isSetOf((anonymous))"`;

is/__snapshots__/utility_test.ts.snap

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
export const snapshot = {};
22

3-
snapshot[`isPartialOf<T> > returns properly named function 1`] = `
4-
"isObjectOf({
5-
a: isOptionalOf(isNumber),
6-
b: isOptionalOf(isUnionOf([
7-
isString,
8-
isUndefined
9-
])),
10-
c: isOptionalOf(isBoolean)
11-
})"
3+
snapshot[`isUnionOf<T> > returns properly named function 1`] = `
4+
"isUnionOf([
5+
isNumber,
6+
isString,
7+
isBoolean
8+
])"
129
`;
1310
14-
snapshot[`isPartialOf<T> > returns properly named function 2`] = `
11+
snapshot[`isIntersectionOf<T> > returns properly named function 1`] = `
1512
"isObjectOf({
16-
a: isOptionalOf(isNumber),
17-
b: isOptionalOf(isUnionOf([
18-
isString,
19-
isUndefined
20-
])),
21-
c: isOptionalOf(isBoolean)
13+
a: isNumber,
14+
b: isString
2215
})"
2316
`;
2417
@@ -44,10 +37,25 @@ snapshot[`isRequiredOf<T> > returns properly named function 2`] = `
4437
})"
4538
`;
4639
47-
snapshot[`isIntersectionOf<T> > returns properly named function 1`] = `
40+
snapshot[`isPartialOf<T> > returns properly named function 1`] = `
4841
"isObjectOf({
49-
a: isNumber,
50-
b: isString
42+
a: isOptionalOf(isNumber),
43+
b: isOptionalOf(isUnionOf([
44+
isString,
45+
isUndefined
46+
])),
47+
c: isOptionalOf(isBoolean)
48+
})"
49+
`;
50+
51+
snapshot[`isPartialOf<T> > returns properly named function 2`] = `
52+
"isObjectOf({
53+
a: isOptionalOf(isNumber),
54+
b: isOptionalOf(isUnionOf([
55+
isString,
56+
isUndefined
57+
])),
58+
c: isOptionalOf(isBoolean)
5159
})"
5260
`;
5361
@@ -68,11 +76,3 @@ snapshot[`isOmitOf<T, K> > returns properly named function 1`] = `
6876
`;
6977
7078
snapshot[`isOmitOf<T, K> > returns properly named function 2`] = `"isObjectOf({a: isNumber})"`;
71-
72-
snapshot[`isUnionOf<T> > returns properly named function 1`] = `
73-
"isUnionOf([
74-
isNumber,
75-
isString,
76-
isBoolean
77-
])"
78-
`;

0 commit comments

Comments
 (0)