aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/support/seeded-runs.ts4
-rw-r--r--test/vitest-extensions.ts2
2 files changed, 2 insertions, 4 deletions
diff --git a/test/support/seeded-runs.ts b/test/support/seeded-runs.ts
index 66d6df3c..04bbd254 100644
--- a/test/support/seeded-runs.ts
+++ b/test/support/seeded-runs.ts
@@ -205,9 +205,7 @@ class TestGenerator<
*
* @param methods The names of the methods.
*/
- itEach<TMethodName extends NoArgsMethodOf<TModule>>(
- ...methods: TMethodName[]
- ): this {
+ itEach(...methods: Array<NoArgsMethodOf<TModule>>): this {
for (const method of methods) {
this.it(method);
}
diff --git a/test/vitest-extensions.ts b/test/vitest-extensions.ts
index 5e94b699..5f414ef2 100644
--- a/test/vitest-extensions.ts
+++ b/test/vitest-extensions.ts
@@ -2,7 +2,7 @@
import { expect } from 'vitest';
expect.extend({
- toContainDuplicates<T>(received: T[]) {
+ toContainDuplicates(received: unknown[]) {
const { isNot = false } = this;
const uniques = new Set(received);