@go-go-scope/testing 2.0.0 → 2.2.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 thelinuxlich (Alisson Cavalcante Agiani)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -114,7 +114,7 @@ declare function createTestScope(options?: {
114
114
  timeout?: number;
115
115
  concurrency?: number;
116
116
  }): Promise<{
117
- scope: go_go_scope.Scope;
117
+ scope: go_go_scope.Scope<Record<string, unknown>>;
118
118
  time: TimeController;
119
119
  }>;
120
120
 
package/dist/index.mjs CHANGED
@@ -280,7 +280,8 @@ function createMockChannel() {
280
280
  if (closed || receiveIndex >= receiveValues.length) {
281
281
  return { done: true, value: void 0 };
282
282
  }
283
- return { done: false, value: receiveValues[receiveIndex++] };
283
+ const value = receiveValues[receiveIndex++];
284
+ return { done: false, value };
284
285
  },
285
286
  async return() {
286
287
  return { done: true, value: void 0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-go-scope/testing",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "description": "Testing utilities for go-go-scope - mocks, spies, and time control",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -11,12 +11,6 @@
11
11
  "default": "./dist/index.mjs"
12
12
  }
13
13
  },
14
- "scripts": {
15
- "build": "pkgroll --clean-dist",
16
- "lint": "biome check --write src/",
17
- "test": "echo 'No tests yet'",
18
- "clean": "rm -rf dist"
19
- },
20
14
  "keywords": [
21
15
  "testing",
22
16
  "mocks",
@@ -42,7 +36,7 @@
42
36
  "access": "public"
43
37
  },
44
38
  "dependencies": {
45
- "go-go-scope": "workspace:*"
39
+ "go-go-scope": "2.2.0"
46
40
  },
47
41
  "devDependencies": {
48
42
  "@biomejs/biome": "^2.4.4",
@@ -50,5 +44,12 @@
50
44
  "pkgroll": "^2.26.3",
51
45
  "typescript": "^5.9.3",
52
46
  "vitest": "^4.0.18"
47
+ },
48
+ "scripts": {
49
+ "build": "pkgroll --clean-dist",
50
+ "lint": "biome check --write src/",
51
+ "test": "echo 'No tests yet'",
52
+ "clean": "rm -rf dist",
53
+ "typecheck": "tsc --noEmit"
53
54
  }
54
- }
55
+ }