@pezkuwi/dev-test 0.85.1 → 0.85.4
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/.skip-deno +0 -0
- package/cjs/packageInfo.js +1 -1
- package/env/expect.d.ts +267 -264
- package/env/jest.d.ts +122 -118
- package/env/lifecycle.d.ts +11 -7
- package/env/suite.d.ts +10 -10
- package/globals.cjs +1 -1
- package/globals.d.ts +7 -9
- package/package.json +11 -11
- package/packageInfo.js +1 -1
- package/tsconfig.build.json +16 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.spec.json +17 -0
- package/tsconfig.spec.tsbuildinfo +1 -0
- package/types.d.ts +12 -9
- package/cjs/detectOther.d.ts +0 -2
- package/cjs/detectOther.js +0 -3
- package/cjs/root.d.ts +0 -2
- package/cjs/root.js +0 -6
- package/cjs/rootJs/Clazz.d.ts +0 -18
- package/cjs/rootJs/Clazz.js +0 -36
- package/cjs/rootJs/Jsx.d.ts +0 -5
- package/cjs/rootJs/Jsx.js +0 -16
- package/cjs/rootJs/JsxChild.d.ts +0 -9
- package/cjs/rootJs/JsxChild.js +0 -9
- package/cjs/rootJs/augmented.d.ts +0 -8
- package/cjs/rootJs/augmented.js +0 -3
- package/cjs/rootJs/index.d.ts +0 -19
- package/cjs/rootJs/index.js +0 -51
- package/cjs/rootTests.d.ts +0 -2
- package/cjs/rootTests.js +0 -44
- package/cjs/sample.d.ts +0 -1
- package/cjs/sample.js +0 -4
- package/config/eslint.js +0 -160
- package/config/eslint.rules.js +0 -214
- package/config/prettier.cjs +0 -22
- package/config/rollup.js +0 -113
- package/config/tsconfig.json +0 -32
- package/config/typedoc.cjs +0 -18
- package/detectOther.d.ts +0 -2
- package/detectOther.js +0 -1
- package/root.d.ts +0 -2
- package/root.js +0 -2
- package/rootJs/Clazz.d.ts +0 -18
- package/rootJs/Clazz.js +0 -32
- package/rootJs/Jsx.d.ts +0 -5
- package/rootJs/Jsx.js +0 -13
- package/rootJs/JsxChild.d.ts +0 -9
- package/rootJs/JsxChild.js +0 -6
- package/rootJs/augmented.d.ts +0 -8
- package/rootJs/augmented.js +0 -2
- package/rootJs/dynamic.d.mts +0 -8
- package/rootJs/dynamic.mjs +0 -13
- package/rootJs/index.d.ts +0 -19
- package/rootJs/index.js +0 -39
- package/rootJs/testJson.json +0 -5
- package/rootStatic/zagros.svg +0 -1
- package/rootTests.d.ts +0 -2
- package/rootTests.js +0 -41
- package/scripts/pezkuwi-ci-ghact-build.mjs +0 -536
- package/scripts/pezkuwi-ci-ghact-docs.mjs +0 -14
- package/scripts/pezkuwi-ci-ghpages-force.mjs +0 -43
- package/scripts/pezkuwi-dev-build-docs.mjs +0 -19
- package/scripts/pezkuwi-dev-build-ts.mjs +0 -1518
- package/scripts/pezkuwi-dev-circular.mjs +0 -29
- package/scripts/pezkuwi-dev-clean-build.mjs +0 -61
- package/scripts/pezkuwi-dev-contrib.mjs +0 -74
- package/scripts/pezkuwi-dev-copy-dir.mjs +0 -44
- package/scripts/pezkuwi-dev-copy-to.mjs +0 -53
- package/scripts/pezkuwi-dev-deno-map.mjs +0 -35
- package/scripts/pezkuwi-dev-run-lint.mjs +0 -40
- package/scripts/pezkuwi-dev-run-node-ts.mjs +0 -9
- package/scripts/pezkuwi-dev-run-test.mjs +0 -163
- package/scripts/pezkuwi-dev-version.mjs +0 -143
- package/scripts/pezkuwi-dev-yarn-only.mjs +0 -11
- package/scripts/pezkuwi-exec-eslint.mjs +0 -7
- package/scripts/pezkuwi-exec-ghpages.mjs +0 -11
- package/scripts/pezkuwi-exec-ghrelease.mjs +0 -7
- package/scripts/pezkuwi-exec-node-test.mjs +0 -368
- package/scripts/pezkuwi-exec-rollup.mjs +0 -7
- package/scripts/pezkuwi-exec-tsc.mjs +0 -7
- package/scripts/pezkuwi-exec-webpack.mjs +0 -7
- package/scripts/util.mjs +0 -540
package/env/jest.d.ts
CHANGED
|
@@ -1,127 +1,131 @@
|
|
|
1
|
+
// [object Object]
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
1
4
|
import type { AnyFn } from '../types.js';
|
|
5
|
+
|
|
2
6
|
/**
|
|
3
7
|
* Sets up the jest object. This is certainly not extensive, and probably
|
|
4
8
|
* not quite meant to be (never say never). Rather this adds the functionality
|
|
5
9
|
* that we use in the pezkuwi-js projects.
|
|
6
10
|
**/
|
|
7
11
|
export declare function jest(): {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} & Omit<{
|
|
20
|
-
mockImplementation: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
21
|
-
mockImplementationOnce: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
22
|
-
mockReset: () => void;
|
|
23
|
-
mockRestore: () => void;
|
|
24
|
-
}, "mock" | keyof F> & Omit<{
|
|
25
|
-
mock: import("../types.js").StubFn;
|
|
26
|
-
_isMockFunction: import("../types.js").StubFn;
|
|
27
|
-
getMockImplementation: import("../types.js").StubFn;
|
|
28
|
-
getMockName: import("../types.js").StubFn;
|
|
29
|
-
mockClear: import("../types.js").StubFn;
|
|
30
|
-
mockImplementation: import("../types.js").StubFn;
|
|
31
|
-
mockImplementationOnce: import("../types.js").StubFn;
|
|
32
|
-
mockName: import("../types.js").StubFn;
|
|
33
|
-
mockRejectedValue: import("../types.js").StubFn;
|
|
34
|
-
mockRejectedValueOnce: import("../types.js").StubFn;
|
|
35
|
-
mockReset: import("../types.js").StubFn;
|
|
36
|
-
mockResolvedValue: import("../types.js").StubFn;
|
|
37
|
-
mockResolvedValueOnce: import("../types.js").StubFn;
|
|
38
|
-
mockRestore: import("../types.js").StubFn;
|
|
39
|
-
mockReturnThis: import("../types.js").StubFn;
|
|
40
|
-
mockReturnValue: import("../types.js").StubFn;
|
|
41
|
-
mockReturnValueOnce: import("../types.js").StubFn;
|
|
42
|
-
withImplementation: import("../types.js").StubFn;
|
|
43
|
-
}, "mock" | keyof F | Exclude<"mockImplementation", "mock" | keyof F> | Exclude<"mockImplementationOnce", "mock" | keyof F> | Exclude<"mockReset", "mock" | keyof F> | Exclude<"mockRestore", "mock" | keyof F>>;
|
|
44
|
-
restoreAllMocks: () => void;
|
|
45
|
-
spyOn: <F extends AnyFn>(obj: object, key: string) => F & {
|
|
46
|
-
mock: {
|
|
47
|
-
calls: {
|
|
48
|
-
arguments: unknown[];
|
|
49
|
-
}[];
|
|
50
|
-
mockImplementation: (fn: AnyFn) => void;
|
|
51
|
-
mockImplementationOnce: (fn: AnyFn) => void;
|
|
52
|
-
resetCalls: () => void;
|
|
53
|
-
restore: () => void;
|
|
54
|
-
};
|
|
55
|
-
} & Omit<{
|
|
56
|
-
mockImplementation: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
57
|
-
mockImplementationOnce: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
58
|
-
mockReset: () => void;
|
|
59
|
-
mockRestore: () => void;
|
|
60
|
-
}, "mock" | keyof F> & Omit<{
|
|
61
|
-
mock: import("../types.js").StubFn;
|
|
62
|
-
_isMockFunction: import("../types.js").StubFn;
|
|
63
|
-
getMockImplementation: import("../types.js").StubFn;
|
|
64
|
-
getMockName: import("../types.js").StubFn;
|
|
65
|
-
mockClear: import("../types.js").StubFn;
|
|
66
|
-
mockImplementation: import("../types.js").StubFn;
|
|
67
|
-
mockImplementationOnce: import("../types.js").StubFn;
|
|
68
|
-
mockName: import("../types.js").StubFn;
|
|
69
|
-
mockRejectedValue: import("../types.js").StubFn;
|
|
70
|
-
mockRejectedValueOnce: import("../types.js").StubFn;
|
|
71
|
-
mockReset: import("../types.js").StubFn;
|
|
72
|
-
mockResolvedValue: import("../types.js").StubFn;
|
|
73
|
-
mockResolvedValueOnce: import("../types.js").StubFn;
|
|
74
|
-
mockRestore: import("../types.js").StubFn;
|
|
75
|
-
mockReturnThis: import("../types.js").StubFn;
|
|
76
|
-
mockReturnValue: import("../types.js").StubFn;
|
|
77
|
-
mockReturnValueOnce: import("../types.js").StubFn;
|
|
78
|
-
withImplementation: import("../types.js").StubFn;
|
|
79
|
-
}, "mock" | keyof F | Exclude<"mockImplementation", "mock" | keyof F> | Exclude<"mockImplementationOnce", "mock" | keyof F> | Exclude<"mockReset", "mock" | keyof F> | Exclude<"mockRestore", "mock" | keyof F>>;
|
|
12
|
+
jest: {
|
|
13
|
+
fn: <F extends AnyFn>(fn?: F) => F & {
|
|
14
|
+
mock: {
|
|
15
|
+
calls: {
|
|
16
|
+
arguments: unknown[];
|
|
17
|
+
}[];
|
|
18
|
+
mockImplementation: (fn: AnyFn) => void;
|
|
19
|
+
mockImplementationOnce: (fn: AnyFn) => void;
|
|
20
|
+
resetCalls: () => void;
|
|
21
|
+
restore: () => void;
|
|
22
|
+
};
|
|
80
23
|
} & Omit<{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
24
|
+
mockImplementation: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
25
|
+
mockImplementationOnce: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
26
|
+
mockReset: () => void;
|
|
27
|
+
mockRestore: () => void;
|
|
28
|
+
}, 'mock' | keyof F> & Omit<{
|
|
29
|
+
mock: import('../types.js').StubFn;
|
|
30
|
+
_isMockFunction: import('../types.js').StubFn;
|
|
31
|
+
getMockImplementation: import('../types.js').StubFn;
|
|
32
|
+
getMockName: import('../types.js').StubFn;
|
|
33
|
+
mockClear: import('../types.js').StubFn;
|
|
34
|
+
mockImplementation: import('../types.js').StubFn;
|
|
35
|
+
mockImplementationOnce: import('../types.js').StubFn;
|
|
36
|
+
mockName: import('../types.js').StubFn;
|
|
37
|
+
mockRejectedValue: import('../types.js').StubFn;
|
|
38
|
+
mockRejectedValueOnce: import('../types.js').StubFn;
|
|
39
|
+
mockReset: import('../types.js').StubFn;
|
|
40
|
+
mockResolvedValue: import('../types.js').StubFn;
|
|
41
|
+
mockResolvedValueOnce: import('../types.js').StubFn;
|
|
42
|
+
mockRestore: import('../types.js').StubFn;
|
|
43
|
+
mockReturnThis: import('../types.js').StubFn;
|
|
44
|
+
mockReturnValue: import('../types.js').StubFn;
|
|
45
|
+
mockReturnValueOnce: import('../types.js').StubFn;
|
|
46
|
+
withImplementation: import('../types.js').StubFn;
|
|
47
|
+
}, 'mock' | keyof F | Exclude<'mockImplementation', 'mock' | keyof F> | Exclude<'mockImplementationOnce', 'mock' | keyof F> | Exclude<'mockReset', 'mock' | keyof F> | Exclude<'mockRestore', 'mock' | keyof F>>;
|
|
48
|
+
restoreAllMocks: () => void;
|
|
49
|
+
spyOn: <F extends AnyFn>(obj: object, key: string) => F & {
|
|
50
|
+
mock: {
|
|
51
|
+
calls: {
|
|
52
|
+
arguments: unknown[];
|
|
53
|
+
}[];
|
|
54
|
+
mockImplementation: (fn: AnyFn) => void;
|
|
55
|
+
mockImplementationOnce: (fn: AnyFn) => void;
|
|
56
|
+
resetCalls: () => void;
|
|
57
|
+
restore: () => void;
|
|
58
|
+
};
|
|
59
|
+
} & Omit<{
|
|
60
|
+
mockImplementation: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
61
|
+
mockImplementationOnce: <F_1 extends AnyFn>(fn: F_1) => void;
|
|
62
|
+
mockReset: () => void;
|
|
63
|
+
mockRestore: () => void;
|
|
64
|
+
}, 'mock' | keyof F> & Omit<{
|
|
65
|
+
mock: import('../types.js').StubFn;
|
|
66
|
+
_isMockFunction: import('../types.js').StubFn;
|
|
67
|
+
getMockImplementation: import('../types.js').StubFn;
|
|
68
|
+
getMockName: import('../types.js').StubFn;
|
|
69
|
+
mockClear: import('../types.js').StubFn;
|
|
70
|
+
mockImplementation: import('../types.js').StubFn;
|
|
71
|
+
mockImplementationOnce: import('../types.js').StubFn;
|
|
72
|
+
mockName: import('../types.js').StubFn;
|
|
73
|
+
mockRejectedValue: import('../types.js').StubFn;
|
|
74
|
+
mockRejectedValueOnce: import('../types.js').StubFn;
|
|
75
|
+
mockReset: import('../types.js').StubFn;
|
|
76
|
+
mockResolvedValue: import('../types.js').StubFn;
|
|
77
|
+
mockResolvedValueOnce: import('../types.js').StubFn;
|
|
78
|
+
mockRestore: import('../types.js').StubFn;
|
|
79
|
+
mockReturnThis: import('../types.js').StubFn;
|
|
80
|
+
mockReturnValue: import('../types.js').StubFn;
|
|
81
|
+
mockReturnValueOnce: import('../types.js').StubFn;
|
|
82
|
+
withImplementation: import('../types.js').StubFn;
|
|
83
|
+
}, 'mock' | keyof F | Exclude<'mockImplementation', 'mock' | keyof F> | Exclude<'mockImplementationOnce', 'mock' | keyof F> | Exclude<'mockReset', 'mock' | keyof F> | Exclude<'mockRestore', 'mock' | keyof F>>;
|
|
84
|
+
} & Omit<{
|
|
85
|
+
setTimeout: import('../types.js').StubFn;
|
|
86
|
+
}, 'fn' | 'restoreAllMocks' | 'spyOn'> & Omit<{
|
|
87
|
+
setTimeout: import('../types.js').StubFn;
|
|
88
|
+
mock: import('../types.js').StubFn;
|
|
89
|
+
advanceTimersByTime: import('../types.js').StubFn;
|
|
90
|
+
advanceTimersToNextTimer: import('../types.js').StubFn;
|
|
91
|
+
autoMockOff: import('../types.js').StubFn;
|
|
92
|
+
autoMockOn: import('../types.js').StubFn;
|
|
93
|
+
clearAllMocks: import('../types.js').StubFn;
|
|
94
|
+
clearAllTimers: import('../types.js').StubFn;
|
|
95
|
+
createMockFromModule: import('../types.js').StubFn;
|
|
96
|
+
deepUnmock: import('../types.js').StubFn;
|
|
97
|
+
disableAutomock: import('../types.js').StubFn;
|
|
98
|
+
doMock: import('../types.js').StubFn;
|
|
99
|
+
dontMock: import('../types.js').StubFn;
|
|
100
|
+
enableAutomock: import('../types.js').StubFn;
|
|
101
|
+
fn: import('../types.js').StubFn;
|
|
102
|
+
genMockFromModule: import('../types.js').StubFn;
|
|
103
|
+
getRealSystemTime: import('../types.js').StubFn;
|
|
104
|
+
getSeed: import('../types.js').StubFn;
|
|
105
|
+
getTimerCount: import('../types.js').StubFn;
|
|
106
|
+
isEnvironmentTornDown: import('../types.js').StubFn;
|
|
107
|
+
isMockFunction: import('../types.js').StubFn;
|
|
108
|
+
isolateModules: import('../types.js').StubFn;
|
|
109
|
+
isolateModulesAsync: import('../types.js').StubFn;
|
|
110
|
+
mocked: import('../types.js').StubFn;
|
|
111
|
+
now: import('../types.js').StubFn;
|
|
112
|
+
replaceProperty: import('../types.js').StubFn;
|
|
113
|
+
requireActual: import('../types.js').StubFn;
|
|
114
|
+
requireMock: import('../types.js').StubFn;
|
|
115
|
+
resetAllMocks: import('../types.js').StubFn;
|
|
116
|
+
resetModules: import('../types.js').StubFn;
|
|
117
|
+
restoreAllMocks: import('../types.js').StubFn;
|
|
118
|
+
retryTimes: import('../types.js').StubFn;
|
|
119
|
+
runAllImmediates: import('../types.js').StubFn;
|
|
120
|
+
runAllTicks: import('../types.js').StubFn;
|
|
121
|
+
runAllTimers: import('../types.js').StubFn;
|
|
122
|
+
runOnlyPendingTimers: import('../types.js').StubFn;
|
|
123
|
+
setMock: import('../types.js').StubFn;
|
|
124
|
+
setSystemTime: import('../types.js').StubFn;
|
|
125
|
+
spyOn: import('../types.js').StubFn;
|
|
126
|
+
unmock: import('../types.js').StubFn;
|
|
127
|
+
unstable_mockModule: import('../types.js').StubFn;
|
|
128
|
+
useFakeTimers: import('../types.js').StubFn;
|
|
129
|
+
useRealTimers: import('../types.js').StubFn;
|
|
130
|
+
}, 'setTimeout' | 'fn' | 'restoreAllMocks' | 'spyOn'>;
|
|
127
131
|
};
|
package/env/lifecycle.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
// [object Object]
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import type { after, afterEach, before, beforeEach } from 'node:test';
|
|
5
|
+
|
|
2
6
|
/**
|
|
3
7
|
* This ensures that the before/after functions are exposed
|
|
4
8
|
**/
|
|
5
9
|
export declare function lifecycle(): {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
after: typeof after;
|
|
11
|
+
afterAll: typeof after;
|
|
12
|
+
afterEach: typeof afterEach;
|
|
13
|
+
before: typeof before;
|
|
14
|
+
beforeAll: typeof before;
|
|
15
|
+
beforeEach: typeof beforeEach;
|
|
12
16
|
};
|
package/env/suite.d.ts
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
* This includes .only, .skip and .todo helpers (.each is not applied)
|
|
4
4
|
**/
|
|
5
5
|
export declare function suite(): {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
describe: ((name: string, exec: () => void | Promise<void>, timeout?: number) => void) & Omit<{
|
|
7
|
+
only: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
8
|
+
skip: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
9
|
+
todo: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
10
|
+
}, never>;
|
|
11
|
+
it: ((name: string, exec: () => void | Promise<void>, timeout?: number) => void) & Omit<{
|
|
12
|
+
only: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
13
|
+
skip: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
14
|
+
todo: (name: string, exec: () => void | Promise<void>, timeout?: number) => void;
|
|
15
|
+
}, never>;
|
|
16
16
|
};
|
package/globals.cjs
CHANGED
package/globals.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
// Copyright 2017-
|
|
1
|
+
// Copyright 2017-2026 @pezkuwi/dev-test authors & contributors
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
/* eslint-disable no-var */
|
|
5
5
|
|
|
6
|
-
import type { expect } from './env/expect.js';
|
|
7
|
-
import type { jest } from './env/jest.js';
|
|
8
|
-
import type { lifecycle } from './env/lifecycle.js';
|
|
9
|
-
import type {
|
|
6
|
+
import type { expect } from './src/env/expect.js';
|
|
7
|
+
import type { jest } from './src/env/jest.js';
|
|
8
|
+
import type { lifecycle } from './src/env/lifecycle.js';
|
|
9
|
+
import type { Describe, It } from './src/env/suite.js';
|
|
10
10
|
|
|
11
11
|
type Expect = ReturnType<typeof expect>;
|
|
12
12
|
|
|
@@ -14,8 +14,6 @@ type Jest = ReturnType<typeof jest>;
|
|
|
14
14
|
|
|
15
15
|
type Lifecycle = ReturnType<typeof lifecycle>;
|
|
16
16
|
|
|
17
|
-
type Suite = ReturnType<typeof suite>;
|
|
18
|
-
|
|
19
17
|
declare global {
|
|
20
18
|
var after: Lifecycle['after'];
|
|
21
19
|
var afterAll: Lifecycle['afterAll'];
|
|
@@ -23,9 +21,9 @@ declare global {
|
|
|
23
21
|
var before: Lifecycle['before'];
|
|
24
22
|
var beforeAll: Lifecycle['beforeAll'];
|
|
25
23
|
var beforeEach: Lifecycle['beforeEach'];
|
|
26
|
-
var describe:
|
|
24
|
+
var describe: Describe;
|
|
27
25
|
var expect: Expect['expect'];
|
|
28
|
-
var it:
|
|
26
|
+
var it: It;
|
|
29
27
|
var jest: Jest['jest'];
|
|
30
28
|
}
|
|
31
29
|
|
package/package.json
CHANGED
|
@@ -1,27 +1,25 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "
|
|
3
|
-
"bugs": "https://github.com/pezkuwi-
|
|
2
|
+
"author": "Pezkuwi Team <team@pezkuwichain.app>",
|
|
3
|
+
"bugs": "https://github.com/pezkuwichain/pezkuwi-dev/issues",
|
|
4
4
|
"description": "A basic test-functions-as-global library on top of node:test",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.14"
|
|
7
7
|
},
|
|
8
|
-
"homepage": "https://github.com/pezkuwi-
|
|
8
|
+
"homepage": "https://github.com/pezkuwichain/pezkuwi-dev/tree/master/packages/dev-test#readme",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"name": "@pezkuwi/dev-test",
|
|
11
11
|
"repository": {
|
|
12
12
|
"directory": "packages/dev-test",
|
|
13
13
|
"type": "git",
|
|
14
|
-
"url": "https://github.com/pezkuwi-
|
|
14
|
+
"url": "https://github.com/pezkuwichain/pezkuwi-dev.git"
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"type": "module",
|
|
18
|
-
"
|
|
18
|
+
"types": "./index.d.ts",
|
|
19
|
+
"version": "0.85.4",
|
|
19
20
|
"main": "./cjs/index.js",
|
|
20
21
|
"module": "./index.js",
|
|
21
|
-
"types": "./index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
|
-
"./cjs/package.json": "./cjs/package.json",
|
|
24
|
-
"./cjs/*": "./cjs/*.js",
|
|
25
23
|
".": {
|
|
26
24
|
"module": {
|
|
27
25
|
"types": "./index.d.ts",
|
|
@@ -50,6 +48,8 @@
|
|
|
50
48
|
"default": "./browser.js"
|
|
51
49
|
}
|
|
52
50
|
},
|
|
51
|
+
"./cjs/*": "./cjs/*.js",
|
|
52
|
+
"./cjs/package.json": "./cjs/package.json",
|
|
53
53
|
"./env": {
|
|
54
54
|
"module": {
|
|
55
55
|
"types": "./env/index.d.ts",
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"default": "./env/suite.js"
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
|
-
"./globals.cjs": "./globals.cjs",
|
|
138
137
|
"./globals": "./globals.cjs",
|
|
138
|
+
"./globals.cjs": "./globals.cjs",
|
|
139
139
|
"./globals.d.cts": "./globals.d.cts",
|
|
140
140
|
"./globals.d.ts": "./globals.d.ts",
|
|
141
141
|
"./node": {
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
"require": "./cjs/package.json",
|
|
157
157
|
"default": "./package.json"
|
|
158
158
|
},
|
|
159
|
-
"./packageInfo
|
|
159
|
+
"./packageInfo": {
|
|
160
160
|
"module": {
|
|
161
161
|
"types": "./packageInfo.d.ts",
|
|
162
162
|
"default": "./packageInfo.js"
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"default": "./packageInfo.js"
|
|
171
171
|
}
|
|
172
172
|
},
|
|
173
|
-
"./packageInfo": {
|
|
173
|
+
"./packageInfo.js": {
|
|
174
174
|
"module": {
|
|
175
175
|
"types": "./packageInfo.d.ts",
|
|
176
176
|
"default": "./packageInfo.js"
|
package/packageInfo.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const packageInfo = { name: '@pezkuwi/dev-test', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.
|
|
1
|
+
export const packageInfo = { name: '@pezkuwi/dev-test', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '0.85.4' };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": "..",
|
|
5
|
+
"outDir": "./build",
|
|
6
|
+
"rootDir": "./src"
|
|
7
|
+
},
|
|
8
|
+
"exclude": [
|
|
9
|
+
"**/mod.ts",
|
|
10
|
+
"src/**/*.spec.ts"
|
|
11
|
+
],
|
|
12
|
+
"include": [
|
|
13
|
+
"src/**/*"
|
|
14
|
+
],
|
|
15
|
+
"references": []
|
|
16
|
+
}
|