@geekmidas/testkit 0.0.11 → 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.
- package/README.md +1 -1
- package/dist/{Factory-B9LP1L18.d.cts → Factory-D7P3bKKb.d.mts} +2 -2
- package/dist/{Factory-DiZSNxC0.d.mts → Factory-pNV7ZQ7-.d.cts} +2 -2
- package/dist/Factory.d.cts +2 -2
- package/dist/Factory.d.mts +2 -2
- package/dist/{KyselyFactory-ELiHgHVv.mjs → KyselyFactory-BcYkC0t2.mjs} +2 -2
- package/dist/{KyselyFactory-B-zlLbov.d.mts → KyselyFactory-BrWADI77.d.mts} +3 -3
- package/dist/{KyselyFactory-Bdq1s1Go.cjs → KyselyFactory-Cf0o2YxO.cjs} +2 -2
- package/dist/{KyselyFactory-CrLWxJW4.d.cts → KyselyFactory-DM2dnUXU.d.cts} +3 -3
- package/dist/KyselyFactory.cjs +2 -2
- package/dist/KyselyFactory.d.cts +3 -3
- package/dist/KyselyFactory.d.mts +3 -3
- package/dist/KyselyFactory.mjs +2 -2
- package/dist/{ObjectionFactory-aqM0dDW7.mjs → ObjectionFactory-8hebmnai.mjs} +21 -5
- package/dist/{ObjectionFactory-CJCpvwts.d.mts → ObjectionFactory-B40NQWSe.d.mts} +2 -2
- package/dist/{ObjectionFactory-Wq80ypMM.cjs → ObjectionFactory-CDriunkS.cjs} +21 -5
- package/dist/{ObjectionFactory-vME-wNlq.d.cts → ObjectionFactory-D3l1VuyX.d.cts} +2 -2
- package/dist/ObjectionFactory.cjs +2 -2
- package/dist/ObjectionFactory.d.cts +3 -3
- package/dist/ObjectionFactory.d.mts +3 -3
- package/dist/ObjectionFactory.mjs +2 -2
- package/dist/__tests__/KyselyFactory.spec.cjs +3 -3
- package/dist/__tests__/KyselyFactory.spec.mjs +3 -3
- package/dist/__tests__/ObjectionFactory.spec.cjs +289 -451
- package/dist/__tests__/ObjectionFactory.spec.mjs +290 -452
- package/dist/__tests__/PostgresKyselyMigrator.spec.cjs +397 -0
- package/dist/__tests__/PostgresKyselyMigrator.spec.d.cts +1 -0
- package/dist/__tests__/PostgresKyselyMigrator.spec.d.mts +1 -0
- package/dist/__tests__/PostgresKyselyMigrator.spec.mjs +396 -0
- package/dist/__tests__/PostgresMigrator.spec.cjs +1 -1
- package/dist/__tests__/PostgresMigrator.spec.mjs +1 -1
- package/dist/__tests__/PostgresObjectionMigrator.spec.cjs +1 -1
- package/dist/__tests__/PostgresObjectionMigrator.spec.mjs +1 -1
- package/dist/__tests__/VitestObjectionTransactionIsolator.spec.cjs +4 -12
- package/dist/__tests__/VitestObjectionTransactionIsolator.spec.mjs +4 -12
- package/dist/__tests__/faker.spec.cjs +1 -1
- package/dist/__tests__/faker.spec.mjs +1 -1
- package/dist/__tests__/integration.spec.cjs +3 -3
- package/dist/__tests__/integration.spec.mjs +3 -3
- package/dist/{faker-SMN4ira4.cjs → faker-B14IEMIN.cjs} +41 -1
- package/dist/{faker-CxKkEeYi.mjs → faker-BGKYFoCT.mjs} +36 -2
- package/dist/{faker-DAiFK3T3.d.cts → faker-BSH1EMtg.d.cts} +13 -3
- package/dist/{faker-nN9Ki6fn.d.mts → faker-C-Iuk_R1.d.mts} +13 -3
- package/dist/faker.cjs +2 -1
- package/dist/faker.d.cts +2 -2
- package/dist/faker.d.mts +2 -2
- package/dist/faker.mjs +2 -2
- package/dist/{helpers-BEmjyUVE.mjs → helpers-B4TXg3Wp.mjs} +11 -36
- package/dist/{helpers-CNMBePuj.cjs → helpers-Bf0nXhbu.cjs} +10 -41
- package/dist/kysely.cjs +2 -2
- package/dist/kysely.d.cts +3 -3
- package/dist/kysely.d.mts +3 -3
- package/dist/kysely.mjs +2 -2
- package/dist/objection.cjs +2 -2
- package/dist/objection.d.cts +3 -3
- package/dist/objection.d.mts +3 -3
- package/dist/objection.mjs +2 -2
- package/package.json +2 -2
- package/src/Factory.ts +4 -1
- package/src/KyselyFactory.ts +6 -2
- package/src/ObjectionFactory.ts +31 -4
- package/src/__tests__/ObjectionFactory.spec.ts +423 -542
- package/src/__tests__/PostgresKyselyMigrator.spec.ts +690 -0
- package/src/__tests__/VitestObjectionTransactionIsolator.spec.ts +0 -8
- package/src/faker.ts +86 -0
- package/test/helpers.ts +13 -21
- package/dist/example.cjs +0 -22
- package/dist/example.d.cts +0 -26
- package/dist/example.d.mts +0 -26
- package/dist/example.mjs +0 -22
- package/src/example.ts +0 -45
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
> Type-safe testing utilities and database factories for modern TypeScript applications
|
|
4
4
|
|
|
5
5
|
[](https://nodejs.org)
|
|
6
|
-
[](https://www.typescriptlang.org)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
9
|
## 🚀 Overview
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
1
|
+
import { FakerFactory } from "./faker-C-Iuk_R1.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/Factory.d.ts
|
|
4
4
|
|
|
@@ -59,7 +59,7 @@ declare abstract class Factory<Builders extends Record<string, any>, Seeds exten
|
|
|
59
59
|
* @param builderName - The name of the builder to use
|
|
60
60
|
* @param attrs - The attributes to insert
|
|
61
61
|
*/
|
|
62
|
-
abstract insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0] | ((idx: number, faker: FakerFactory) => Parameters<Builders[K]>[0])): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
62
|
+
abstract insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0] | ((idx: number, faker: FakerFactory) => Promise<Parameters<Builders[K]>[0]>)): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
63
63
|
/**
|
|
64
64
|
* Seeds the database using a seed function.
|
|
65
65
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
1
|
+
import { FakerFactory } from "./faker-BSH1EMtg.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/Factory.d.ts
|
|
4
4
|
|
|
@@ -59,7 +59,7 @@ declare abstract class Factory<Builders extends Record<string, any>, Seeds exten
|
|
|
59
59
|
* @param builderName - The name of the builder to use
|
|
60
60
|
* @param attrs - The attributes to insert
|
|
61
61
|
*/
|
|
62
|
-
abstract insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0] | ((idx: number, faker: FakerFactory) => Parameters<Builders[K]>[0])): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
62
|
+
abstract insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0] | ((idx: number, faker: FakerFactory) => Promise<Parameters<Builders[K]>[0]>)): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
63
63
|
/**
|
|
64
64
|
* Seeds the database using a seed function.
|
|
65
65
|
*
|
package/dist/Factory.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import { Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-
|
|
1
|
+
import "./faker-BSH1EMtg.cjs";
|
|
2
|
+
import { Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-pNV7ZQ7-.cjs";
|
|
3
3
|
export { Factory, FactorySeed, MixedFactoryBuilder };
|
package/dist/Factory.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import { Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-
|
|
1
|
+
import "./faker-C-Iuk_R1.mjs";
|
|
2
|
+
import { Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-D7P3bKKb.mjs";
|
|
3
3
|
export { Factory, FactorySeed, MixedFactoryBuilder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Factory } from "./Factory-z2m01hMj.mjs";
|
|
2
|
-
import { faker } from "./faker-
|
|
2
|
+
import { faker } from "./faker-BGKYFoCT.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/KyselyFactory.ts
|
|
5
5
|
/**
|
|
@@ -166,7 +166,7 @@ var KyselyFactory = class extends Factory {
|
|
|
166
166
|
if (!(builderName in this.builders)) throw new Error(`Builder "${builderName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
167
167
|
const promises = [];
|
|
168
168
|
for (let i = 0; i < count; i++) {
|
|
169
|
-
const newAttrs = typeof attrs === "function" ? attrs(i, faker) : attrs;
|
|
169
|
+
const newAttrs = typeof attrs === "function" ? await attrs(i, faker) : attrs;
|
|
170
170
|
promises.push(this.insert(builderName, newAttrs));
|
|
171
171
|
}
|
|
172
172
|
return Promise.all(promises);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-C-Iuk_R1.mjs";
|
|
2
|
+
import { Factory, FactorySeed } from "./Factory-D7P3bKKb.mjs";
|
|
3
3
|
import { ControlledTransaction, Insertable, Kysely, Selectable } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/KyselyFactory.d.ts
|
|
@@ -164,7 +164,7 @@ declare class KyselyFactory<DB, Builders extends Record<string, any>, Seeds exte
|
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
166
|
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
167
|
-
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs: (idx: number, faker: FakerFactory) => Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
167
|
+
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs: (idx: number, faker: FakerFactory) => Promise<Parameters<Builders[K]>[0]>): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
168
168
|
/**
|
|
169
169
|
* Executes a seed function to create complex test scenarios with multiple related records.
|
|
170
170
|
* Seeds are useful for setting up complete test environments with realistic data relationships.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_Factory = require('./Factory-WMhTNZ9S.cjs');
|
|
2
|
-
const require_faker = require('./faker-
|
|
2
|
+
const require_faker = require('./faker-B14IEMIN.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/KyselyFactory.ts
|
|
5
5
|
/**
|
|
@@ -166,7 +166,7 @@ var KyselyFactory = class extends require_Factory.Factory {
|
|
|
166
166
|
if (!(builderName in this.builders)) throw new Error(`Builder "${builderName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
167
167
|
const promises = [];
|
|
168
168
|
for (let i = 0; i < count; i++) {
|
|
169
|
-
const newAttrs = typeof attrs === "function" ? attrs(i, require_faker.faker) : attrs;
|
|
169
|
+
const newAttrs = typeof attrs === "function" ? await attrs(i, require_faker.faker) : attrs;
|
|
170
170
|
promises.push(this.insert(builderName, newAttrs));
|
|
171
171
|
}
|
|
172
172
|
return Promise.all(promises);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-BSH1EMtg.cjs";
|
|
2
|
+
import { Factory, FactorySeed } from "./Factory-pNV7ZQ7-.cjs";
|
|
3
3
|
import { ControlledTransaction, Insertable, Kysely, Selectable } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/KyselyFactory.d.ts
|
|
@@ -164,7 +164,7 @@ declare class KyselyFactory<DB, Builders extends Record<string, any>, Seeds exte
|
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
166
|
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs?: Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
167
|
-
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs: (idx: number, faker: FakerFactory) => Parameters<Builders[K]>[0]): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
167
|
+
insertMany<K extends keyof Builders>(count: number, builderName: K, attrs: (idx: number, faker: FakerFactory) => Promise<Parameters<Builders[K]>[0]>): Promise<Awaited<ReturnType<Builders[K]>>[]>;
|
|
168
168
|
/**
|
|
169
169
|
* Executes a seed function to create complex test scenarios with multiple related records.
|
|
170
170
|
* Seeds are useful for setting up complete test environments with realistic data relationships.
|
package/dist/KyselyFactory.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('./Factory-WMhTNZ9S.cjs');
|
|
2
|
-
require('./faker-
|
|
3
|
-
const require_KyselyFactory = require('./KyselyFactory-
|
|
2
|
+
require('./faker-B14IEMIN.cjs');
|
|
3
|
+
const require_KyselyFactory = require('./KyselyFactory-Cf0o2YxO.cjs');
|
|
4
4
|
|
|
5
5
|
exports.KyselyFactory = require_KyselyFactory.KyselyFactory;
|
package/dist/KyselyFactory.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { KyselyFactory } from "./KyselyFactory-
|
|
1
|
+
import "./faker-BSH1EMtg.cjs";
|
|
2
|
+
import "./Factory-pNV7ZQ7-.cjs";
|
|
3
|
+
import { KyselyFactory } from "./KyselyFactory-DM2dnUXU.cjs";
|
|
4
4
|
export { KyselyFactory };
|
package/dist/KyselyFactory.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { KyselyFactory } from "./KyselyFactory-
|
|
1
|
+
import "./faker-C-Iuk_R1.mjs";
|
|
2
|
+
import "./Factory-D7P3bKKb.mjs";
|
|
3
|
+
import { KyselyFactory } from "./KyselyFactory-BrWADI77.mjs";
|
|
4
4
|
export { KyselyFactory };
|
package/dist/KyselyFactory.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Factory } from "./Factory-z2m01hMj.mjs";
|
|
2
|
-
import { faker } from "./faker-
|
|
2
|
+
import { faker } from "./faker-BGKYFoCT.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/ObjectionFactory.ts
|
|
5
5
|
/**
|
|
@@ -110,7 +110,11 @@ var ObjectionFactory = class extends Factory {
|
|
|
110
110
|
}
|
|
111
111
|
const model = ModelClass.fromJson(data);
|
|
112
112
|
if (autoInsert !== false) {
|
|
113
|
-
const
|
|
113
|
+
const insertData = Object.entries(model).reduce((acc, [key, value]) => {
|
|
114
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
115
|
+
return acc;
|
|
116
|
+
}, {});
|
|
117
|
+
const result = await ModelClass.query(db).insert(insertData);
|
|
114
118
|
return result;
|
|
115
119
|
} else return model;
|
|
116
120
|
};
|
|
@@ -162,16 +166,28 @@ var ObjectionFactory = class extends Factory {
|
|
|
162
166
|
async insert(builderName, attrs) {
|
|
163
167
|
if (!(builderName in this.builders)) throw new Error(`Factory "${builderName}" does not exist. Make sure it is correct and registered in src/test/setup.ts`);
|
|
164
168
|
const result = await this.builders[builderName](attrs || {}, this, this.db, faker);
|
|
165
|
-
if (result && typeof result.$query === "function")
|
|
169
|
+
if (result && typeof result.$query === "function") {
|
|
170
|
+
const insertData = Object.entries(result).reduce((acc, [key, value]) => {
|
|
171
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
172
|
+
return acc;
|
|
173
|
+
}, {});
|
|
174
|
+
return await result.constructor.query(this.db).insert(insertData);
|
|
175
|
+
}
|
|
166
176
|
return result;
|
|
167
177
|
}
|
|
168
178
|
async insertMany(count, builderName, attrs) {
|
|
169
179
|
if (!(builderName in this.builders)) throw new Error(`Builder "${builderName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
170
180
|
const records = [];
|
|
171
181
|
for (let i = 0; i < count; i++) {
|
|
172
|
-
const newAttrs = typeof attrs === "function" ? attrs(i, faker) : attrs;
|
|
182
|
+
const newAttrs = typeof attrs === "function" ? await attrs(i, faker) : attrs;
|
|
173
183
|
records.push(this.builders[builderName](newAttrs, this, this.db, faker).then((record) => {
|
|
174
|
-
if (record && typeof record.$query === "function")
|
|
184
|
+
if (record && typeof record.$query === "function") {
|
|
185
|
+
const insertData = Object.entries(record).reduce((acc, [key, value]) => {
|
|
186
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
187
|
+
return acc;
|
|
188
|
+
}, {});
|
|
189
|
+
return record.constructor.query(this.db).insert(insertData);
|
|
190
|
+
}
|
|
175
191
|
return record;
|
|
176
192
|
}));
|
|
177
193
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-C-Iuk_R1.mjs";
|
|
2
|
+
import { Factory, FactorySeed } from "./Factory-D7P3bKKb.mjs";
|
|
3
3
|
import { Knex } from "knex";
|
|
4
4
|
import { Model } from "objection";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_Factory = require('./Factory-WMhTNZ9S.cjs');
|
|
2
|
-
const require_faker = require('./faker-
|
|
2
|
+
const require_faker = require('./faker-B14IEMIN.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/ObjectionFactory.ts
|
|
5
5
|
/**
|
|
@@ -110,7 +110,11 @@ var ObjectionFactory = class extends require_Factory.Factory {
|
|
|
110
110
|
}
|
|
111
111
|
const model = ModelClass.fromJson(data);
|
|
112
112
|
if (autoInsert !== false) {
|
|
113
|
-
const
|
|
113
|
+
const insertData = Object.entries(model).reduce((acc, [key, value]) => {
|
|
114
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
115
|
+
return acc;
|
|
116
|
+
}, {});
|
|
117
|
+
const result = await ModelClass.query(db).insert(insertData);
|
|
114
118
|
return result;
|
|
115
119
|
} else return model;
|
|
116
120
|
};
|
|
@@ -162,16 +166,28 @@ var ObjectionFactory = class extends require_Factory.Factory {
|
|
|
162
166
|
async insert(builderName, attrs) {
|
|
163
167
|
if (!(builderName in this.builders)) throw new Error(`Factory "${builderName}" does not exist. Make sure it is correct and registered in src/test/setup.ts`);
|
|
164
168
|
const result = await this.builders[builderName](attrs || {}, this, this.db, require_faker.faker);
|
|
165
|
-
if (result && typeof result.$query === "function")
|
|
169
|
+
if (result && typeof result.$query === "function") {
|
|
170
|
+
const insertData = Object.entries(result).reduce((acc, [key, value]) => {
|
|
171
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
172
|
+
return acc;
|
|
173
|
+
}, {});
|
|
174
|
+
return await result.constructor.query(this.db).insert(insertData);
|
|
175
|
+
}
|
|
166
176
|
return result;
|
|
167
177
|
}
|
|
168
178
|
async insertMany(count, builderName, attrs) {
|
|
169
179
|
if (!(builderName in this.builders)) throw new Error(`Builder "${builderName}" is not registered in this factory. Make sure it is correct and registered in src/test/setup.ts`);
|
|
170
180
|
const records = [];
|
|
171
181
|
for (let i = 0; i < count; i++) {
|
|
172
|
-
const newAttrs = typeof attrs === "function" ? attrs(i, require_faker.faker) : attrs;
|
|
182
|
+
const newAttrs = typeof attrs === "function" ? await attrs(i, require_faker.faker) : attrs;
|
|
173
183
|
records.push(this.builders[builderName](newAttrs, this, this.db, require_faker.faker).then((record) => {
|
|
174
|
-
if (record && typeof record.$query === "function")
|
|
184
|
+
if (record && typeof record.$query === "function") {
|
|
185
|
+
const insertData = Object.entries(record).reduce((acc, [key, value]) => {
|
|
186
|
+
if (value !== void 0 && key !== "id") acc[key] = value;
|
|
187
|
+
return acc;
|
|
188
|
+
}, {});
|
|
189
|
+
return record.constructor.query(this.db).insert(insertData);
|
|
190
|
+
}
|
|
175
191
|
return record;
|
|
176
192
|
}));
|
|
177
193
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-BSH1EMtg.cjs";
|
|
2
|
+
import { Factory, FactorySeed } from "./Factory-pNV7ZQ7-.cjs";
|
|
3
3
|
import { Knex } from "knex";
|
|
4
4
|
import { Model } from "objection";
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require('./Factory-WMhTNZ9S.cjs');
|
|
2
|
-
require('./faker-
|
|
3
|
-
const require_ObjectionFactory = require('./ObjectionFactory-
|
|
2
|
+
require('./faker-B14IEMIN.cjs');
|
|
3
|
+
const require_ObjectionFactory = require('./ObjectionFactory-CDriunkS.cjs');
|
|
4
4
|
|
|
5
5
|
exports.ObjectionFactory = require_ObjectionFactory.ObjectionFactory;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { ObjectionFactory } from "./ObjectionFactory-
|
|
1
|
+
import "./faker-BSH1EMtg.cjs";
|
|
2
|
+
import "./Factory-pNV7ZQ7-.cjs";
|
|
3
|
+
import { ObjectionFactory } from "./ObjectionFactory-D3l1VuyX.cjs";
|
|
4
4
|
export { ObjectionFactory };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { ObjectionFactory } from "./ObjectionFactory-
|
|
1
|
+
import "./faker-C-Iuk_R1.mjs";
|
|
2
|
+
import "./Factory-D7P3bKKb.mjs";
|
|
3
|
+
import { ObjectionFactory } from "./ObjectionFactory-B40NQWSe.mjs";
|
|
4
4
|
export { ObjectionFactory };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./Factory-z2m01hMj.mjs";
|
|
2
|
-
import "./faker-
|
|
3
|
-
import { ObjectionFactory } from "./ObjectionFactory-
|
|
2
|
+
import "./faker-BGKYFoCT.mjs";
|
|
3
|
+
import { ObjectionFactory } from "./ObjectionFactory-8hebmnai.mjs";
|
|
4
4
|
|
|
5
5
|
export { ObjectionFactory };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_chunk = require('../chunk-CUT6urMc.cjs');
|
|
2
2
|
require('../Factory-WMhTNZ9S.cjs');
|
|
3
|
-
require('../faker-
|
|
4
|
-
const require_KyselyFactory = require('../KyselyFactory-
|
|
3
|
+
require('../faker-B14IEMIN.cjs');
|
|
4
|
+
const require_KyselyFactory = require('../KyselyFactory-Cf0o2YxO.cjs');
|
|
5
5
|
require('../PostgresMigrator-DFcNdCvD.cjs');
|
|
6
6
|
require('../PostgresKyselyMigrator-CfytARcA.cjs');
|
|
7
7
|
require('../VitestTransactionIsolator-CruLTRRi.cjs');
|
|
8
8
|
require('../VitestKyselyTransactionIsolator-CIlpIO78.cjs');
|
|
9
9
|
const require_helpers = require('../helpers-nEUtQ7eo.cjs');
|
|
10
10
|
const require_kysely = require('../kysely-CBfCXxUn.cjs');
|
|
11
|
-
const require_helpers$1 = require('../helpers-
|
|
11
|
+
const require_helpers$1 = require('../helpers-Bf0nXhbu.cjs');
|
|
12
12
|
const pg = require_chunk.__toESM(require("pg"));
|
|
13
13
|
const vitest = require_chunk.__toESM(require("vitest"));
|
|
14
14
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../Factory-z2m01hMj.mjs";
|
|
2
|
-
import "../faker-
|
|
3
|
-
import { KyselyFactory } from "../KyselyFactory-
|
|
2
|
+
import "../faker-BGKYFoCT.mjs";
|
|
3
|
+
import { KyselyFactory } from "../KyselyFactory-BcYkC0t2.mjs";
|
|
4
4
|
import "../PostgresMigrator-DxPC_gGu.mjs";
|
|
5
5
|
import "../PostgresKyselyMigrator-Bdhl251C.mjs";
|
|
6
6
|
import "../VitestTransactionIsolator-BWwK-ca6.mjs";
|
|
7
7
|
import "../VitestKyselyTransactionIsolator-BKGT9nEG.mjs";
|
|
8
8
|
import { createKyselyDb } from "../helpers-BuPmgzyQ.mjs";
|
|
9
9
|
import { wrapVitestKyselyTransaction } from "../kysely-Cx_1pZYc.mjs";
|
|
10
|
-
import { TEST_DATABASE_CONFIG, createTestTables } from "../helpers-
|
|
10
|
+
import { TEST_DATABASE_CONFIG, createTestTables } from "../helpers-B4TXg3Wp.mjs";
|
|
11
11
|
import pg from "pg";
|
|
12
12
|
import { describe, expect, it } from "vitest";
|
|
13
13
|
|