@opra/testing 0.0.12 → 0.0.13
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Response } from 'supertest';
|
|
2
|
-
import {
|
|
2
|
+
import { GetEntityQueryOptions } from '@opra/core';
|
|
3
3
|
import { ResourceKey } from '@opra/url';
|
|
4
4
|
import { BaseOperationTester } from './base-operation-tester.js';
|
|
5
5
|
import type { OpraEntityTesterParams } from './entity-tester';
|
|
6
6
|
export declare type OpraEntityGetTesterParams = OpraEntityTesterParams & {
|
|
7
7
|
keyValue: ResourceKey;
|
|
8
|
-
options:
|
|
8
|
+
options: GetEntityQueryOptions;
|
|
9
9
|
};
|
|
10
10
|
export declare class OpraEntityGetTester extends BaseOperationTester {
|
|
11
11
|
protected readonly _params: OpraEntityGetTesterParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateQueryOptions, DeleteManyQueryOption, DeleteQueryOptions,
|
|
1
|
+
import { CreateQueryOptions, DeleteManyQueryOption, DeleteQueryOptions, GetEntityQueryOptions, UpdateManyQueryOptions, UpdateQueryOptions } from '@opra/core';
|
|
2
2
|
import { ResourceKey } from '@opra/url';
|
|
3
3
|
import { BaseTester, OpraTesterParams } from './base-tester.js';
|
|
4
4
|
import { OpraEntityCreateTester } from './entity-create-tester.js';
|
|
@@ -15,8 +15,8 @@ export declare class OpraEntityTester extends BaseTester {
|
|
|
15
15
|
protected readonly _params: OpraEntityTesterParams;
|
|
16
16
|
constructor(params: OpraEntityTesterParams);
|
|
17
17
|
create(data: {}, options?: CreateQueryOptions): OpraEntityCreateTester;
|
|
18
|
-
get(keyValue: ResourceKey, options?:
|
|
19
|
-
search(options?:
|
|
18
|
+
get(keyValue: ResourceKey, options?: GetEntityQueryOptions): OpraEntityGetTester;
|
|
19
|
+
search(options?: GetEntityQueryOptions): OpraEntitySearchTester;
|
|
20
20
|
update(keyValue: ResourceKey, data: {}, options?: UpdateQueryOptions): OpraEntityUpdateTester;
|
|
21
21
|
updateMany(data: {}, options?: UpdateManyQueryOptions): OpraEntityUpdateManyTester;
|
|
22
22
|
delete(keyValue: ResourceKey, options?: DeleteQueryOptions): OpraEntityDeleteTester;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/testing",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Opra testing package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"clean:cover": "rimraf ../../coverage/testing"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@opra/core": "^0.0.
|
|
29
|
-
"@opra/url": "^0.0.
|
|
28
|
+
"@opra/core": "^0.0.13",
|
|
29
|
+
"@opra/url": "^0.0.13",
|
|
30
30
|
"lodash": "^4.17.21",
|
|
31
31
|
"rule-judgment": "^1.1.5",
|
|
32
32
|
"supertest": "^6.2.4"
|
|
@@ -35,8 +35,6 @@
|
|
|
35
35
|
"@types/supertest": "^2.0.12"
|
|
36
36
|
},
|
|
37
37
|
"type": "module",
|
|
38
|
-
"main": "cjs/index.js",
|
|
39
|
-
"module": "esm/index.js",
|
|
40
38
|
"types": "esm/index.d.ts",
|
|
41
39
|
"exports": {
|
|
42
40
|
".": {
|