@nocobase/test 0.8.0-alpha.8 → 0.8.1-alpha.3
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/index.d.ts +3 -0
- package/lib/index.js +7 -1
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
+
pgOnly: true,
|
|
7
8
|
mockDatabase: true
|
|
8
9
|
};
|
|
9
10
|
Object.defineProperty(exports, "mockDatabase", {
|
|
@@ -12,6 +13,7 @@ Object.defineProperty(exports, "mockDatabase", {
|
|
|
12
13
|
return _database().mockDatabase;
|
|
13
14
|
}
|
|
14
15
|
});
|
|
16
|
+
exports.pgOnly = void 0;
|
|
15
17
|
|
|
16
18
|
function _database() {
|
|
17
19
|
const data = require("@nocobase/database");
|
|
@@ -35,4 +37,8 @@ Object.keys(_mockServer).forEach(function (key) {
|
|
|
35
37
|
return _mockServer[key];
|
|
36
38
|
}
|
|
37
39
|
});
|
|
38
|
-
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const pgOnly = () => process.env.DB_DIALECT == 'postgres' ? describe : describe.skip;
|
|
43
|
+
|
|
44
|
+
exports.pgOnly = pgOnly;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/test",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-alpha.3",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "./lib/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@nocobase/server": "0.8.
|
|
14
|
+
"@nocobase/server": "0.8.1-alpha.3",
|
|
15
15
|
"@types/supertest": "^2.0.11",
|
|
16
16
|
"mockjs": "^1.1.0",
|
|
17
17
|
"mysql2": "^2.3.3",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"sqlite3": "^5.0.8",
|
|
21
21
|
"supertest": "^6.1.6"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "e03df3df5962b99d9fbf5b6e33fbe2b23f14f3d3"
|
|
24
24
|
}
|