@granito/vitest-marbles 1.0.0 → 1.0.1
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/README.md +1 -0
- package/index.js +3635 -8
- package/lib/internal-matchers.d.ts +2 -2
- package/lib/types.d.ts +7 -12
- package/package.json +9 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SubscriptionLog,
|
|
1
|
+
import { SubscriptionLog, TestMessage } from './types';
|
|
2
2
|
import { MatchersObject } from '@vitest/expect';
|
|
3
3
|
interface InternalMatchers<R = unknown> {
|
|
4
|
-
toBeNotifications: (messages:
|
|
4
|
+
toBeNotifications: (messages: TestMessage[]) => R;
|
|
5
5
|
toBeSubscriptions: (subscriptions: SubscriptionLog[]) => R;
|
|
6
6
|
toHaveEmptySubscriptions: () => R;
|
|
7
7
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ColdObservable } from "rxjs/internal/testing/ColdObservable";
|
|
2
|
+
import { HotObservable } from "rxjs/internal/testing/HotObservable";
|
|
3
|
+
import { SubscriptionLog } from "rxjs/internal/testing/SubscriptionLog";
|
|
4
|
+
import { TestMessage } from "rxjs/internal/testing/TestMessage";
|
|
4
5
|
export type TestObservable<T> = ColdObservable<T> | HotObservable<T>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export type TestMessages = ReturnType<typeof TestScheduler.parseMarbles>;
|
|
9
|
-
/**
|
|
10
|
-
* Exported return type of SubscriptionLog to avoid importing internal APIs.
|
|
11
|
-
*/
|
|
12
|
-
export type SubscriptionLog = ReturnType<typeof TestScheduler.parseMarblesAsSubscriptions>;
|
|
13
|
-
export type MessagesOrSubscriptions = TestMessages | SubscriptionLog[];
|
|
6
|
+
export type MessagesOrSubscriptions = TestMessage[] | SubscriptionLog[];
|
|
7
|
+
export type { SubscriptionLog, TestMessage };
|
|
8
|
+
export { ColdObservable, HotObservable };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@granito/vitest-marbles",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Marble testing helpers library for RxJs and Vitest",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,17 +40,17 @@
|
|
|
40
40
|
"tag": "latest"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@nx/esbuild": "22.
|
|
44
|
-
"@nx/vitest": "22.
|
|
45
|
-
"@vitest/coverage-v8": "^4.0.
|
|
46
|
-
"esbuild": "^0.27.
|
|
47
|
-
"jsdom": "
|
|
48
|
-
"nx": "22.
|
|
43
|
+
"@nx/esbuild": "22.3.3",
|
|
44
|
+
"@nx/vitest": "22.3.3",
|
|
45
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
46
|
+
"esbuild": "^0.27.2",
|
|
47
|
+
"jsdom": "^27.3.0",
|
|
48
|
+
"nx": "22.3.3",
|
|
49
49
|
"rxjs": "^7.8.2",
|
|
50
50
|
"tslib": "^2.8.1",
|
|
51
51
|
"typescript": "~5.9.3",
|
|
52
|
-
"vite": "^7.
|
|
53
|
-
"vitest": "^4.0.
|
|
52
|
+
"vite": "^7.3.0",
|
|
53
|
+
"vitest": "^4.0.16"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"rxjs": "^7.0.0",
|