@nocobase/test 0.14.0-alpha.8 → 0.15.0-alpha.2
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/lib/client/e2eUtils.js +2 -3
- package/package.json +3 -3
package/lib/client/e2eUtils.js
CHANGED
|
@@ -243,10 +243,9 @@ const createCollections = /* @__PURE__ */ __name(async (collectionSettings) => {
|
|
|
243
243
|
const state = await api.storageState();
|
|
244
244
|
const headers = getHeaders(state);
|
|
245
245
|
collectionSettings = Array.isArray(collectionSettings) ? collectionSettings : [collectionSettings];
|
|
246
|
-
const result = await api.post(`/api/collections:
|
|
246
|
+
const result = await api.post(`/api/collections:mock`, {
|
|
247
247
|
headers,
|
|
248
|
-
|
|
249
|
-
data: collectionSettings.filter((item) => !["users", "roles"].includes(item.name))
|
|
248
|
+
data: collectionSettings
|
|
250
249
|
});
|
|
251
250
|
if (!result.ok()) {
|
|
252
251
|
throw new Error(await result.text());
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/test",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0-alpha.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@nocobase/server": "0.
|
|
8
|
+
"@nocobase/server": "0.15.0-alpha.2",
|
|
9
9
|
"@types/supertest": "^2.0.11",
|
|
10
10
|
"mockjs": "^1.1.0",
|
|
11
11
|
"mysql2": "^2.3.3",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"supertest": "^6.1.6",
|
|
16
16
|
"ws": "^8.13.0"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "2504887cf82935200bf546b28adf2872cab3e452"
|
|
19
19
|
}
|