@takaro/module-test 0.0.0-dev.9e84341 → 0.0.0-dev.9ee3e9a
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 +2 -1
- package/dist/.source-hash +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -240,7 +240,8 @@ it(t.spec.name, t.testOptions(), () => t.runBody());
|
|
|
240
240
|
|
|
241
241
|
A stub replaces the whole response, so it must produce the axios envelope module code reads.
|
|
242
242
|
`ok`, `single` and `paginated` build it. Every method on `client.stubs` is optional, so `?.` is
|
|
243
|
-
required:
|
|
243
|
+
required. A `gameServerControllerExecuteCommand` stub answering `success: false` fails the run with
|
|
244
|
+
`GameServerCommandRejectedError`, as in Takaro:
|
|
244
245
|
|
|
245
246
|
```ts
|
|
246
247
|
import { createModuleTest, paginated } from '@takaro/module-test';
|
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
5e6716baabb40bb01dbc979bc7f920d492b3ded153561701a6a93f7ea84ae1e0
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takaro/module-test",
|
|
3
3
|
"description": "Unit-test harness for Takaro modules: the real module VM against an in-memory fake of the Takaro API client",
|
|
4
|
-
"version": "0.0.0-dev.
|
|
4
|
+
"version": "0.0.0-dev.9ee3e9a",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@takaro/apiclient": "0.0.0-dev.
|
|
8
|
-
"@takaro/helpers": "0.0.0-dev.
|
|
7
|
+
"@takaro/apiclient": "0.0.0-dev.9ee3e9a",
|
|
8
|
+
"@takaro/helpers": "0.0.0-dev.9ee3e9a",
|
|
9
9
|
"@types/sinon": "17.0.4",
|
|
10
10
|
"ajv": "8.20.0",
|
|
11
11
|
"sinon": "11.1.2"
|