@rcompat/test 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/private/Assert.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type Test from "#Test";
|
|
2
2
|
import type { Not, Print, UnknownFunction } from "@rcompat/type";
|
|
3
|
-
type Equals<X, Y> = (<T>() => T extends X ? true : false) extends <T>() => T extends Y ? true : false ? true : false;
|
|
3
|
+
type Equals<X, Y> = (<T>() => T extends X ? true : false) extends <T>() => (T extends Y ? true : false) ? true : false;
|
|
4
4
|
export default class Assert<const Actual> {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(test: Test, actual?: Actual);
|
package/lib/private/index.d.ts
CHANGED
|
@@ -8,6 +8,11 @@ import type { ExtendedTest, Factory } from "#extend";
|
|
|
8
8
|
import mock from "#mock";
|
|
9
9
|
import import_ from "#import";
|
|
10
10
|
declare const _default: {
|
|
11
|
+
case(name: string, body: Body): void;
|
|
12
|
+
ended(end: End): void;
|
|
13
|
+
group(name: string, fn: () => void): void;
|
|
14
|
+
mock: typeof mock;
|
|
15
|
+
import: typeof import_;
|
|
11
16
|
intercept: (base_url: string, setup: (setup: {
|
|
12
17
|
get(path: string, handler: (request: Request) => unknown): void;
|
|
13
18
|
post(path: string, handler: (request: Request) => unknown): void;
|
|
@@ -21,11 +26,6 @@ declare const _default: {
|
|
|
21
26
|
[Symbol.dispose](): void;
|
|
22
27
|
};
|
|
23
28
|
extend<Subject, Extensions>(factory: Factory<Subject, Extensions>): ExtendedTest<Extensions>;
|
|
24
|
-
case(name: string, body: Body): void;
|
|
25
|
-
ended(end: End): void;
|
|
26
|
-
group(name: string, fn: () => void): void;
|
|
27
|
-
mock: typeof mock;
|
|
28
|
-
import: typeof import_;
|
|
29
29
|
};
|
|
30
30
|
export default _default;
|
|
31
31
|
export type { Asserter, Env, ExtendedTest, Result, Test };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rcompat/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Standard library testing",
|
|
5
5
|
"bugs": "https://github.com/rcompat/rcompat/issues",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"directory": "packages/test"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@rcompat/is": "^0.
|
|
18
|
+
"@rcompat/is": "^0.12.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@rcompat/fs": "^0.
|
|
22
|
-
"@rcompat/type": "^0.
|
|
21
|
+
"@rcompat/fs": "^0.35.0",
|
|
22
|
+
"@rcompat/type": "^0.18.0"
|
|
23
23
|
},
|
|
24
24
|
"type": "module",
|
|
25
25
|
"imports": {
|
|
@@ -51,8 +51,9 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
|
-
"build": "npm run clean &&
|
|
54
|
+
"build": "npm run clean && tsgo",
|
|
55
55
|
"test": "npx proby",
|
|
56
|
-
"clean": "rm -rf ./lib"
|
|
56
|
+
"clean": "rm -rf ./lib",
|
|
57
|
+
"lint": "eslint ."
|
|
57
58
|
}
|
|
58
59
|
}
|