@geekmidas/testkit 0.0.7 → 0.0.9
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/dist/PostgresObjectionMigrator-B88aTT0m.cjs +122 -0
- package/dist/PostgresObjectionMigrator-DydSgYFv.mjs +117 -0
- package/dist/PostgresObjectionMigrator.cjs +4 -0
- package/dist/PostgresObjectionMigrator.mjs +4 -0
- package/dist/{VitestKyselyTransactionIsolator-AfxPJEwR.mjs → VitestKyselyTransactionIsolator-BKGT9nEG.mjs} +1 -1
- package/dist/{VitestKyselyTransactionIsolator-YWnSJiIH.cjs → VitestKyselyTransactionIsolator-CIlpIO78.cjs} +1 -1
- package/dist/VitestKyselyTransactionIsolator.cjs +2 -2
- package/dist/VitestKyselyTransactionIsolator.mjs +2 -2
- package/dist/{VitestObjectionTransactionIsolator-BZRYy8iW.mjs → VitestObjectionTransactionIsolator-BPoLUFop.mjs} +2 -2
- package/dist/{VitestObjectionTransactionIsolator-0uX6DW5G.cjs → VitestObjectionTransactionIsolator-DyqLp_in.cjs} +2 -2
- package/dist/VitestObjectionTransactionIsolator.cjs +2 -2
- package/dist/VitestObjectionTransactionIsolator.mjs +2 -2
- package/dist/VitestTransactionIsolator.cjs +1 -1
- package/dist/VitestTransactionIsolator.mjs +1 -1
- package/dist/__tests__/KyselyFactory.spec.cjs +5 -5
- package/dist/__tests__/KyselyFactory.spec.mjs +5 -5
- package/dist/__tests__/ObjectionFactory.spec.cjs +1 -1
- package/dist/__tests__/ObjectionFactory.spec.mjs +1 -1
- package/dist/__tests__/PostgresMigrator.spec.cjs +1 -1
- package/dist/__tests__/PostgresMigrator.spec.mjs +1 -1
- package/dist/__tests__/PostgresObjectionMigrator.spec.cjs +432 -0
- package/dist/__tests__/PostgresObjectionMigrator.spec.mjs +431 -0
- package/dist/__tests__/VitestObjectionTransactionIsolator.spec.cjs +130 -0
- package/dist/__tests__/VitestObjectionTransactionIsolator.spec.mjs +129 -0
- package/dist/__tests__/integration.spec.cjs +5 -5
- package/dist/__tests__/integration.spec.mjs +5 -5
- package/dist/{helpers-CukcFAU9.mjs → helpers-BEmjyUVE.mjs} +1 -1
- package/dist/{helpers-Bnm3Jy9X.cjs → helpers-CNMBePuj.cjs} +12 -0
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.mjs +1 -1
- package/dist/{kysely-B-GOhABm.cjs → kysely-CBfCXxUn.cjs} +2 -2
- package/dist/{kysely-CqfoKVXs.mjs → kysely-Cx_1pZYc.mjs} +2 -2
- package/dist/kysely.cjs +3 -3
- package/dist/kysely.mjs +3 -3
- package/dist/objection-CCD8fMLj.cjs +87 -0
- package/dist/objection-lsMgM5gP.mjs +82 -0
- package/dist/objection.cjs +7 -81
- package/dist/objection.mjs +6 -81
- package/package.json +1 -1
- package/src/PostgresObjectionMigrator.ts +138 -0
- package/src/VitestObjectionTransactionIsolator.ts +2 -1
- package/src/__tests__/PostgresObjectionMigrator.spec.ts +634 -0
- package/src/__tests__/VitestObjectionTransactionIsolator.spec.ts +144 -0
- package/src/objection.ts +1 -0
- package/test/helpers.ts +3 -1
- /package/dist/{VitestTransactionIsolator-kFL36T8x.mjs → VitestTransactionIsolator-BWwK-ca6.mjs} +0 -0
- /package/dist/{VitestTransactionIsolator-DcOz0LZF.cjs → VitestTransactionIsolator-CruLTRRi.cjs} +0 -0
- /package/dist/{helpers-CKMlwSYT.mjs → helpers-BuPmgzyQ.mjs} +0 -0
- /package/dist/{helpers-H4hO5SZR.cjs → helpers-nEUtQ7eo.cjs} +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
const require_PostgresMigrator = require('./PostgresMigrator-BtAWdLss.cjs');
|
|
2
|
+
|
|
3
|
+
//#region src/PostgresObjectionMigrator.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default logger instance for migration operations.
|
|
6
|
+
*/
|
|
7
|
+
const logger = console;
|
|
8
|
+
/**
|
|
9
|
+
* PostgreSQL migrator implementation for Objection.js ORM with Knex.
|
|
10
|
+
* Extends PostgresMigrator to provide Knex-specific migration functionality.
|
|
11
|
+
* Automatically creates test databases and applies migrations for testing environments.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import knex from 'knex';
|
|
16
|
+
* import { PostgresObjectionMigrator } from '@geekmidas/testkit';
|
|
17
|
+
*
|
|
18
|
+
* // Create Knex instance
|
|
19
|
+
* const db = knex({
|
|
20
|
+
* client: 'pg',
|
|
21
|
+
* connection: uri,
|
|
22
|
+
* migrations: {
|
|
23
|
+
* directory: path.join(__dirname, 'migrations'),
|
|
24
|
+
* extension: 'ts'
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
*
|
|
28
|
+
* // Create and use migrator
|
|
29
|
+
* const migrator = new PostgresObjectionMigrator({
|
|
30
|
+
* uri: 'postgresql://localhost:5432/test_db',
|
|
31
|
+
* knex: db
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* const cleanup = await migrator.start();
|
|
35
|
+
* // Run tests...
|
|
36
|
+
* await cleanup();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
var PostgresObjectionMigrator = class extends require_PostgresMigrator.PostgresMigrator {
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new PostgresObjectionMigrator instance.
|
|
42
|
+
*
|
|
43
|
+
* @param options - Configuration options
|
|
44
|
+
* @param options.uri - PostgreSQL connection URI
|
|
45
|
+
* @param options.knex - Knex database instance configured with migrations
|
|
46
|
+
*/
|
|
47
|
+
constructor(options) {
|
|
48
|
+
super(options.uri);
|
|
49
|
+
this.options = options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Executes Knex migrations to the latest version.
|
|
53
|
+
* Implements the abstract migrate() method from PostgresMigrator.
|
|
54
|
+
*
|
|
55
|
+
* @throws Error if migrations fail to apply
|
|
56
|
+
* @returns Promise that resolves when all migrations are applied
|
|
57
|
+
*/
|
|
58
|
+
async migrate() {
|
|
59
|
+
try {
|
|
60
|
+
const [batchNo, migrations] = await this.options.knex.migrate.latest();
|
|
61
|
+
if (migrations.length > 0) {
|
|
62
|
+
logger.log(`Applied batch ${batchNo} with ${migrations.length} migrations:`);
|
|
63
|
+
migrations.forEach((migration) => {
|
|
64
|
+
logger.log(` - ${migration}`);
|
|
65
|
+
});
|
|
66
|
+
} else logger.log("No pending migrations to apply");
|
|
67
|
+
} catch (error) {
|
|
68
|
+
logger.error("Failed to apply migrations:", error);
|
|
69
|
+
throw error;
|
|
70
|
+
} finally {
|
|
71
|
+
await this.options.knex.destroy();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Rolls back the last batch of migrations.
|
|
76
|
+
* Useful for testing migration rollback scenarios.
|
|
77
|
+
*
|
|
78
|
+
* @returns Promise that resolves when rollback is complete
|
|
79
|
+
*/
|
|
80
|
+
async rollback() {
|
|
81
|
+
try {
|
|
82
|
+
const [batchNo, migrations] = await this.options.knex.migrate.rollback();
|
|
83
|
+
if (migrations.length > 0) {
|
|
84
|
+
logger.log(`Rolled back batch ${batchNo} with ${migrations.length} migrations:`);
|
|
85
|
+
migrations.forEach((migration) => {
|
|
86
|
+
logger.log(` - ${migration}`);
|
|
87
|
+
});
|
|
88
|
+
} else logger.log("No migrations to rollback");
|
|
89
|
+
} catch (error) {
|
|
90
|
+
logger.error("Failed to rollback migrations:", error);
|
|
91
|
+
throw error;
|
|
92
|
+
} finally {
|
|
93
|
+
await this.options.knex.destroy();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets the current migration status.
|
|
98
|
+
* Returns information about completed and pending migrations.
|
|
99
|
+
*
|
|
100
|
+
* @returns Promise with migration status information
|
|
101
|
+
*/
|
|
102
|
+
async status() {
|
|
103
|
+
try {
|
|
104
|
+
const completed = await this.options.knex.migrate.list();
|
|
105
|
+
const [, pending] = await this.options.knex.migrate.currentVersion();
|
|
106
|
+
return {
|
|
107
|
+
completed: Array.isArray(completed[0]) ? completed[0] : [],
|
|
108
|
+
pending: Array.isArray(pending) ? pending : []
|
|
109
|
+
};
|
|
110
|
+
} finally {
|
|
111
|
+
await this.options.knex.destroy();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
Object.defineProperty(exports, 'PostgresObjectionMigrator', {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
get: function () {
|
|
120
|
+
return PostgresObjectionMigrator;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { PostgresMigrator } from "./PostgresMigrator-BzqksJcW.mjs";
|
|
2
|
+
|
|
3
|
+
//#region src/PostgresObjectionMigrator.ts
|
|
4
|
+
/**
|
|
5
|
+
* Default logger instance for migration operations.
|
|
6
|
+
*/
|
|
7
|
+
const logger = console;
|
|
8
|
+
/**
|
|
9
|
+
* PostgreSQL migrator implementation for Objection.js ORM with Knex.
|
|
10
|
+
* Extends PostgresMigrator to provide Knex-specific migration functionality.
|
|
11
|
+
* Automatically creates test databases and applies migrations for testing environments.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```typescript
|
|
15
|
+
* import knex from 'knex';
|
|
16
|
+
* import { PostgresObjectionMigrator } from '@geekmidas/testkit';
|
|
17
|
+
*
|
|
18
|
+
* // Create Knex instance
|
|
19
|
+
* const db = knex({
|
|
20
|
+
* client: 'pg',
|
|
21
|
+
* connection: uri,
|
|
22
|
+
* migrations: {
|
|
23
|
+
* directory: path.join(__dirname, 'migrations'),
|
|
24
|
+
* extension: 'ts'
|
|
25
|
+
* }
|
|
26
|
+
* });
|
|
27
|
+
*
|
|
28
|
+
* // Create and use migrator
|
|
29
|
+
* const migrator = new PostgresObjectionMigrator({
|
|
30
|
+
* uri: 'postgresql://localhost:5432/test_db',
|
|
31
|
+
* knex: db
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* const cleanup = await migrator.start();
|
|
35
|
+
* // Run tests...
|
|
36
|
+
* await cleanup();
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
var PostgresObjectionMigrator = class extends PostgresMigrator {
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new PostgresObjectionMigrator instance.
|
|
42
|
+
*
|
|
43
|
+
* @param options - Configuration options
|
|
44
|
+
* @param options.uri - PostgreSQL connection URI
|
|
45
|
+
* @param options.knex - Knex database instance configured with migrations
|
|
46
|
+
*/
|
|
47
|
+
constructor(options) {
|
|
48
|
+
super(options.uri);
|
|
49
|
+
this.options = options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Executes Knex migrations to the latest version.
|
|
53
|
+
* Implements the abstract migrate() method from PostgresMigrator.
|
|
54
|
+
*
|
|
55
|
+
* @throws Error if migrations fail to apply
|
|
56
|
+
* @returns Promise that resolves when all migrations are applied
|
|
57
|
+
*/
|
|
58
|
+
async migrate() {
|
|
59
|
+
try {
|
|
60
|
+
const [batchNo, migrations] = await this.options.knex.migrate.latest();
|
|
61
|
+
if (migrations.length > 0) {
|
|
62
|
+
logger.log(`Applied batch ${batchNo} with ${migrations.length} migrations:`);
|
|
63
|
+
migrations.forEach((migration) => {
|
|
64
|
+
logger.log(` - ${migration}`);
|
|
65
|
+
});
|
|
66
|
+
} else logger.log("No pending migrations to apply");
|
|
67
|
+
} catch (error) {
|
|
68
|
+
logger.error("Failed to apply migrations:", error);
|
|
69
|
+
throw error;
|
|
70
|
+
} finally {
|
|
71
|
+
await this.options.knex.destroy();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Rolls back the last batch of migrations.
|
|
76
|
+
* Useful for testing migration rollback scenarios.
|
|
77
|
+
*
|
|
78
|
+
* @returns Promise that resolves when rollback is complete
|
|
79
|
+
*/
|
|
80
|
+
async rollback() {
|
|
81
|
+
try {
|
|
82
|
+
const [batchNo, migrations] = await this.options.knex.migrate.rollback();
|
|
83
|
+
if (migrations.length > 0) {
|
|
84
|
+
logger.log(`Rolled back batch ${batchNo} with ${migrations.length} migrations:`);
|
|
85
|
+
migrations.forEach((migration) => {
|
|
86
|
+
logger.log(` - ${migration}`);
|
|
87
|
+
});
|
|
88
|
+
} else logger.log("No migrations to rollback");
|
|
89
|
+
} catch (error) {
|
|
90
|
+
logger.error("Failed to rollback migrations:", error);
|
|
91
|
+
throw error;
|
|
92
|
+
} finally {
|
|
93
|
+
await this.options.knex.destroy();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets the current migration status.
|
|
98
|
+
* Returns information about completed and pending migrations.
|
|
99
|
+
*
|
|
100
|
+
* @returns Promise with migration status information
|
|
101
|
+
*/
|
|
102
|
+
async status() {
|
|
103
|
+
try {
|
|
104
|
+
const completed = await this.options.knex.migrate.list();
|
|
105
|
+
const [, pending] = await this.options.knex.migrate.currentVersion();
|
|
106
|
+
return {
|
|
107
|
+
completed: Array.isArray(completed[0]) ? completed[0] : [],
|
|
108
|
+
pending: Array.isArray(pending) ? pending : []
|
|
109
|
+
};
|
|
110
|
+
} finally {
|
|
111
|
+
await this.options.knex.destroy();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
export { PostgresObjectionMigrator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./VitestTransactionIsolator-
|
|
2
|
-
const require_VitestKyselyTransactionIsolator = require('./VitestKyselyTransactionIsolator-
|
|
1
|
+
require('./VitestTransactionIsolator-CruLTRRi.cjs');
|
|
2
|
+
const require_VitestKyselyTransactionIsolator = require('./VitestKyselyTransactionIsolator-CIlpIO78.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VitestKyselyTransactionIsolator = require_VitestKyselyTransactionIsolator.VitestKyselyTransactionIsolator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./VitestTransactionIsolator-
|
|
2
|
-
import { VitestKyselyTransactionIsolator } from "./VitestKyselyTransactionIsolator-
|
|
1
|
+
import "./VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
2
|
+
import { VitestKyselyTransactionIsolator } from "./VitestKyselyTransactionIsolator-BKGT9nEG.mjs";
|
|
3
3
|
|
|
4
4
|
export { VitestKyselyTransactionIsolator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VitestPostgresTransactionIsolator } from "./VitestTransactionIsolator-
|
|
1
|
+
import { VitestPostgresTransactionIsolator } from "./VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/VitestObjectionTransactionIsolator.ts
|
|
4
4
|
/**
|
|
@@ -50,7 +50,7 @@ var VitestObjectionTransactionIsolator = class extends VitestPostgresTransaction
|
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
async transact(conn, level, fn) {
|
|
53
|
-
const isolationLevel = level.
|
|
53
|
+
const isolationLevel = level.toLowerCase();
|
|
54
54
|
await conn.transaction(async (trx) => {
|
|
55
55
|
await fn(trx);
|
|
56
56
|
}, { isolationLevel });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_VitestTransactionIsolator = require('./VitestTransactionIsolator-
|
|
1
|
+
const require_VitestTransactionIsolator = require('./VitestTransactionIsolator-CruLTRRi.cjs');
|
|
2
2
|
|
|
3
3
|
//#region src/VitestObjectionTransactionIsolator.ts
|
|
4
4
|
/**
|
|
@@ -50,7 +50,7 @@ var VitestObjectionTransactionIsolator = class extends require_VitestTransaction
|
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
async transact(conn, level, fn) {
|
|
53
|
-
const isolationLevel = level.
|
|
53
|
+
const isolationLevel = level.toLowerCase();
|
|
54
54
|
await conn.transaction(async (trx) => {
|
|
55
55
|
await fn(trx);
|
|
56
56
|
}, { isolationLevel });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
require('./VitestTransactionIsolator-
|
|
2
|
-
const require_VitestObjectionTransactionIsolator = require('./VitestObjectionTransactionIsolator-
|
|
1
|
+
require('./VitestTransactionIsolator-CruLTRRi.cjs');
|
|
2
|
+
const require_VitestObjectionTransactionIsolator = require('./VitestObjectionTransactionIsolator-DyqLp_in.cjs');
|
|
3
3
|
|
|
4
4
|
exports.VitestObjectionTransactionIsolator = require_VitestObjectionTransactionIsolator.VitestObjectionTransactionIsolator;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./VitestTransactionIsolator-
|
|
2
|
-
import { VitestObjectionTransactionIsolator } from "./VitestObjectionTransactionIsolator-
|
|
1
|
+
import "./VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
2
|
+
import { VitestObjectionTransactionIsolator } from "./VitestObjectionTransactionIsolator-BPoLUFop.mjs";
|
|
3
3
|
|
|
4
4
|
export { VitestObjectionTransactionIsolator };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_VitestTransactionIsolator = require('./VitestTransactionIsolator-
|
|
1
|
+
const require_VitestTransactionIsolator = require('./VitestTransactionIsolator-CruLTRRi.cjs');
|
|
2
2
|
|
|
3
3
|
exports.IsolationLevel = require_VitestTransactionIsolator.IsolationLevel;
|
|
4
4
|
exports.VitestPostgresTransactionIsolator = require_VitestTransactionIsolator.VitestPostgresTransactionIsolator;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IsolationLevel, VitestPostgresTransactionIsolator } from "./VitestTransactionIsolator-
|
|
1
|
+
import { IsolationLevel, VitestPostgresTransactionIsolator } from "./VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
2
2
|
|
|
3
3
|
export { IsolationLevel, VitestPostgresTransactionIsolator };
|
|
@@ -4,11 +4,11 @@ require('../faker-SMN4ira4.cjs');
|
|
|
4
4
|
const require_KyselyFactory = require('../KyselyFactory-Bdq1s1Go.cjs');
|
|
5
5
|
require('../PostgresMigrator-BtAWdLss.cjs');
|
|
6
6
|
require('../PostgresKyselyMigrator-Bs31emFd.cjs');
|
|
7
|
-
require('../VitestTransactionIsolator-
|
|
8
|
-
require('../VitestKyselyTransactionIsolator-
|
|
9
|
-
const require_helpers = require('../helpers-
|
|
10
|
-
const require_kysely = require('../kysely-
|
|
11
|
-
const require_helpers$1 = require('../helpers-
|
|
7
|
+
require('../VitestTransactionIsolator-CruLTRRi.cjs');
|
|
8
|
+
require('../VitestKyselyTransactionIsolator-CIlpIO78.cjs');
|
|
9
|
+
const require_helpers = require('../helpers-nEUtQ7eo.cjs');
|
|
10
|
+
const require_kysely = require('../kysely-CBfCXxUn.cjs');
|
|
11
|
+
const require_helpers$1 = require('../helpers-CNMBePuj.cjs');
|
|
12
12
|
const pg = require_chunk.__toESM(require("pg"));
|
|
13
13
|
const vitest = require_chunk.__toESM(require("vitest"));
|
|
14
14
|
|
|
@@ -3,11 +3,11 @@ import "../faker-CxKkEeYi.mjs";
|
|
|
3
3
|
import { KyselyFactory } from "../KyselyFactory-ELiHgHVv.mjs";
|
|
4
4
|
import "../PostgresMigrator-BzqksJcW.mjs";
|
|
5
5
|
import "../PostgresKyselyMigrator-ChIpZFYB.mjs";
|
|
6
|
-
import "../VitestTransactionIsolator-
|
|
7
|
-
import "../VitestKyselyTransactionIsolator-
|
|
8
|
-
import { createKyselyDb } from "../helpers-
|
|
9
|
-
import { wrapVitestKyselyTransaction } from "../kysely-
|
|
10
|
-
import { TEST_DATABASE_CONFIG, createTestTables } from "../helpers-
|
|
6
|
+
import "../VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
7
|
+
import "../VitestKyselyTransactionIsolator-BKGT9nEG.mjs";
|
|
8
|
+
import { createKyselyDb } from "../helpers-BuPmgzyQ.mjs";
|
|
9
|
+
import { wrapVitestKyselyTransaction } from "../kysely-Cx_1pZYc.mjs";
|
|
10
|
+
import { TEST_DATABASE_CONFIG, createTestTables } from "../helpers-BEmjyUVE.mjs";
|
|
11
11
|
import pg from "pg";
|
|
12
12
|
import { describe, expect, it } from "vitest";
|
|
13
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
2
|
require('../Factory-WMhTNZ9S.cjs');
|
|
3
3
|
const require_ObjectionFactory = require('../ObjectionFactory-C47B03Ot.cjs');
|
|
4
|
-
const require_helpers = require('../helpers-
|
|
4
|
+
const require_helpers = require('../helpers-CNMBePuj.cjs');
|
|
5
5
|
const vitest = require_chunk.__toESM(require("vitest"));
|
|
6
6
|
const objection = require_chunk.__toESM(require("objection"));
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../Factory-z2m01hMj.mjs";
|
|
2
2
|
import { ObjectionFactory } from "../ObjectionFactory-89p-FFEw.mjs";
|
|
3
|
-
import { setupKnexTest } from "../helpers-
|
|
3
|
+
import { setupKnexTest } from "../helpers-BEmjyUVE.mjs";
|
|
4
4
|
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
5
5
|
import { Model } from "objection";
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
2
|
const require_PostgresMigrator = require('../PostgresMigrator-BtAWdLss.cjs');
|
|
3
|
-
const require_helpers = require('../helpers-
|
|
3
|
+
const require_helpers = require('../helpers-CNMBePuj.cjs');
|
|
4
4
|
const pg = require_chunk.__toESM(require("pg"));
|
|
5
5
|
const vitest = require_chunk.__toESM(require("vitest"));
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PostgresMigrator } from "../PostgresMigrator-BzqksJcW.mjs";
|
|
2
|
-
import { createTestDatabase } from "../helpers-
|
|
2
|
+
import { createTestDatabase } from "../helpers-BEmjyUVE.mjs";
|
|
3
3
|
import { Client } from "pg";
|
|
4
4
|
import { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
5
|
|