@backstage/backend-test-utils 0.4.0-next.1 → 0.4.0-next.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/CHANGELOG.md +14 -0
- package/dist/index.cjs.js +354 -224
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -5
- package/package.json +9 -8
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,8 @@ type TestDatabaseId = 'POSTGRES_16' | 'POSTGRES_15' | 'POSTGRES_14' | 'POSTGRES_
|
|
|
77
77
|
* @public
|
|
78
78
|
*/
|
|
79
79
|
declare class TestDatabases {
|
|
80
|
-
private readonly
|
|
80
|
+
private readonly engineFactoryByDriver;
|
|
81
|
+
private readonly engineByTestDatabaseId;
|
|
81
82
|
private readonly supportedIds;
|
|
82
83
|
private static defaultIds?;
|
|
83
84
|
/**
|
|
@@ -109,10 +110,6 @@ declare class TestDatabases {
|
|
|
109
110
|
* @returns A `Knex` connection object
|
|
110
111
|
*/
|
|
111
112
|
init(id: TestDatabaseId): Promise<Knex>;
|
|
112
|
-
private initAny;
|
|
113
|
-
private initPostgres;
|
|
114
|
-
private initMysql;
|
|
115
|
-
private initSqlite;
|
|
116
113
|
private shutdown;
|
|
117
114
|
}
|
|
118
115
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/backend-test-utils",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.2",
|
|
4
4
|
"description": "Test helpers library for Backstage backends",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "node-library"
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
"test": "backstage-cli package test"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@backstage/backend-app-api": "^0.7.6-next.
|
|
46
|
-
"@backstage/backend-
|
|
47
|
-
"@backstage/backend-plugin-api": "^0.6.19-next.1",
|
|
45
|
+
"@backstage/backend-app-api": "^0.7.6-next.2",
|
|
46
|
+
"@backstage/backend-plugin-api": "^0.6.19-next.2",
|
|
48
47
|
"@backstage/config": "^1.2.0",
|
|
49
48
|
"@backstage/errors": "^1.2.4",
|
|
50
|
-
"@backstage/plugin-auth-node": "^0.4.14-next.
|
|
51
|
-
"@backstage/plugin-events-node": "^0.3.5-next.
|
|
49
|
+
"@backstage/plugin-auth-node": "^0.4.14-next.2",
|
|
50
|
+
"@backstage/plugin-events-node": "^0.3.5-next.1",
|
|
52
51
|
"@backstage/types": "^1.1.1",
|
|
53
52
|
"@keyv/memcache": "^1.3.5",
|
|
54
53
|
"@keyv/redis": "^2.5.3",
|
|
@@ -62,12 +61,14 @@
|
|
|
62
61
|
"msw": "^1.0.0",
|
|
63
62
|
"mysql2": "^3.0.0",
|
|
64
63
|
"pg": "^8.11.3",
|
|
64
|
+
"pg-connection-string": "^2.3.0",
|
|
65
65
|
"testcontainers": "^10.0.0",
|
|
66
66
|
"textextensions": "^5.16.0",
|
|
67
|
-
"uuid": "^9.0.0"
|
|
67
|
+
"uuid": "^9.0.0",
|
|
68
|
+
"yn": "^4.0.0"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@backstage/cli": "^0.26.7-next.
|
|
71
|
+
"@backstage/cli": "^0.26.7-next.2",
|
|
71
72
|
"@types/supertest": "^2.0.8",
|
|
72
73
|
"supertest": "^6.1.3"
|
|
73
74
|
},
|