@geekmidas/testkit 0.3.1 → 0.4.0
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/{Factory-BK06XuDA.d.cts → Factory-c16c27Y6.d.cts} +2 -2
- package/dist/Factory.d.cts +2 -2
- package/dist/{KyselyFactory-Bu9ssWZP.d.cts → KyselyFactory-uZ45h7YU.d.cts} +3 -3
- package/dist/KyselyFactory.d.cts +3 -3
- package/dist/{ObjectionFactory-tKWZOiYO.d.cts → ObjectionFactory-CdhzKs4f.d.cts} +3 -3
- package/dist/ObjectionFactory.d.cts +3 -3
- package/dist/better-auth.d.cts +2 -2
- package/dist/{directory-DlkPEzL4.d.cts → directory-BXavAeJZ.d.mts} +1 -1
- package/dist/{directory-BPf1LgNX.d.mts → directory-Mi7tdOuD.d.cts} +1 -1
- package/dist/{faker-Cg76aFNO.d.cts → faker-DvxiCtxc.d.cts} +3 -3
- package/dist/faker.d.cts +1 -1
- package/dist/kysely.d.cts +3 -3
- package/dist/objection.d.cts +3 -3
- package/dist/os/directory.d.cts +1 -1
- package/dist/os/directory.d.mts +1 -1
- package/dist/os/index.d.cts +1 -1
- package/dist/os/index.d.mts +1 -1
- package/package.json +39 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
1
|
+
import { FakerFactory } from "./faker-DvxiCtxc.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/Factory.d.ts
|
|
4
4
|
|
|
@@ -143,4 +143,4 @@ type ExtractSeedAttrs<T> = T extends ((context: {
|
|
|
143
143
|
}) => any) ? A : never;
|
|
144
144
|
//#endregion
|
|
145
145
|
export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
|
|
146
|
-
//# sourceMappingURL=Factory-
|
|
146
|
+
//# sourceMappingURL=Factory-c16c27Y6.d.cts.map
|
package/dist/Factory.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-
|
|
1
|
+
import "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-c16c27Y6.cjs";
|
|
3
3
|
export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-c16c27Y6.cjs";
|
|
3
3
|
import { ControlledTransaction, Insertable, Kysely, Selectable } from "kysely";
|
|
4
4
|
|
|
5
5
|
//#region src/KyselyFactory.d.ts
|
|
@@ -224,4 +224,4 @@ declare class KyselyFactory<DB, Builders extends Record<string, any>, Seeds exte
|
|
|
224
224
|
}
|
|
225
225
|
//#endregion
|
|
226
226
|
export { KyselyFactory };
|
|
227
|
-
//# sourceMappingURL=KyselyFactory-
|
|
227
|
+
//# sourceMappingURL=KyselyFactory-uZ45h7YU.d.cts.map
|
package/dist/KyselyFactory.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { KyselyFactory } from "./KyselyFactory-
|
|
1
|
+
import "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import "./Factory-c16c27Y6.cjs";
|
|
3
|
+
import { KyselyFactory } from "./KyselyFactory-uZ45h7YU.cjs";
|
|
4
4
|
export { KyselyFactory };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FakerFactory } from "./faker-
|
|
2
|
-
import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-
|
|
1
|
+
import { FakerFactory } from "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-c16c27Y6.cjs";
|
|
3
3
|
import { Knex } from "knex";
|
|
4
4
|
import { Model } from "objection";
|
|
5
5
|
|
|
@@ -237,4 +237,4 @@ declare class ObjectionFactory<Builders extends Record<string, any>, Seeds exten
|
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
export { ObjectionFactory };
|
|
240
|
-
//# sourceMappingURL=ObjectionFactory-
|
|
240
|
+
//# sourceMappingURL=ObjectionFactory-CdhzKs4f.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./faker-
|
|
2
|
-
import "./Factory-
|
|
3
|
-
import { ObjectionFactory } from "./ObjectionFactory-
|
|
1
|
+
import "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import "./Factory-c16c27Y6.cjs";
|
|
3
|
+
import { ObjectionFactory } from "./ObjectionFactory-CdhzKs4f.cjs";
|
|
4
4
|
export { ObjectionFactory };
|
package/dist/better-auth.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_adapters3 from "better-auth/adapters";
|
|
2
2
|
import { DBAdapterDebugLogOption } from "better-auth/adapters";
|
|
3
3
|
|
|
4
4
|
//#region src/better-auth.d.ts
|
|
@@ -7,7 +7,7 @@ interface MemoryAdapterConfig {
|
|
|
7
7
|
usePlural?: boolean;
|
|
8
8
|
initialData?: Record<string, any[]>;
|
|
9
9
|
}
|
|
10
|
-
declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) =>
|
|
10
|
+
declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) => better_auth_adapters3.AdapterFactory & {
|
|
11
11
|
clear: () => void;
|
|
12
12
|
getAllData: () => Record<string, any[]>;
|
|
13
13
|
getStore: () => Map<any, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _faker_js_faker2 from "@faker-js/faker";
|
|
2
2
|
|
|
3
3
|
//#region src/faker.d.ts
|
|
4
4
|
|
|
@@ -134,7 +134,7 @@ declare function coordinateOutsideRadius(center: Coordinate, minRadiusMeters: nu
|
|
|
134
134
|
* const productPrice = faker.price();
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
|
-
declare const faker: Readonly<
|
|
137
|
+
declare const faker: Readonly<_faker_js_faker2.Faker & {
|
|
138
138
|
timestamps: typeof timestamps;
|
|
139
139
|
identifier: typeof identifier;
|
|
140
140
|
sequence: typeof sequence;
|
|
@@ -163,4 +163,4 @@ type Timestamps = {
|
|
|
163
163
|
type FakerFactory = typeof faker;
|
|
164
164
|
//#endregion
|
|
165
165
|
export { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
|
|
166
|
-
//# sourceMappingURL=faker-
|
|
166
|
+
//# sourceMappingURL=faker-DvxiCtxc.d.cts.map
|
package/dist/faker.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-
|
|
1
|
+
import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-DvxiCtxc.cjs";
|
|
2
2
|
export { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
|
package/dist/kysely.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FakerFactory, faker } from "./faker-
|
|
2
|
-
import { ExtractSeedAttrs, FactorySeed } from "./Factory-
|
|
3
|
-
import { KyselyFactory } from "./KyselyFactory-
|
|
1
|
+
import { FakerFactory, faker } from "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import { ExtractSeedAttrs, FactorySeed } from "./Factory-c16c27Y6.cjs";
|
|
3
|
+
import { KyselyFactory } from "./KyselyFactory-uZ45h7YU.cjs";
|
|
4
4
|
import "./PostgresMigrator-D5UkK1_K.cjs";
|
|
5
5
|
import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CQ3aUoy_.cjs";
|
|
6
6
|
import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-CwQaxZLP.cjs";
|
package/dist/objection.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FakerFactory, faker } from "./faker-
|
|
2
|
-
import { ExtractSeedAttrs, FactorySeed } from "./Factory-
|
|
3
|
-
import { ObjectionFactory } from "./ObjectionFactory-
|
|
1
|
+
import { FakerFactory, faker } from "./faker-DvxiCtxc.cjs";
|
|
2
|
+
import { ExtractSeedAttrs, FactorySeed } from "./Factory-c16c27Y6.cjs";
|
|
3
|
+
import { ObjectionFactory } from "./ObjectionFactory-CdhzKs4f.cjs";
|
|
4
4
|
import "./PostgresMigrator-D5UkK1_K.cjs";
|
|
5
5
|
import { PostgresObjectionMigrator } from "./PostgresObjectionMigrator-CZHHcCOv.cjs";
|
|
6
6
|
import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-CwQaxZLP.cjs";
|
package/dist/os/directory.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DirectoryFixtures, itWithDir } from "../directory-
|
|
1
|
+
import { DirectoryFixtures, itWithDir } from "../directory-Mi7tdOuD.cjs";
|
|
2
2
|
export { DirectoryFixtures, itWithDir };
|
package/dist/os/directory.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DirectoryFixtures, itWithDir } from "../directory-
|
|
1
|
+
import { DirectoryFixtures, itWithDir } from "../directory-BXavAeJZ.mjs";
|
|
2
2
|
export { DirectoryFixtures, itWithDir };
|
package/dist/os/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { itWithDir } from "../directory-
|
|
1
|
+
import { itWithDir } from "../directory-Mi7tdOuD.cjs";
|
|
2
2
|
export { itWithDir };
|
package/dist/os/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { itWithDir } from "../directory-
|
|
1
|
+
import { itWithDir } from "../directory-BXavAeJZ.mjs";
|
|
2
2
|
export { itWithDir };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geekmidas/testkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -51,11 +51,12 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@faker-js/faker": "~9.9.0"
|
|
55
|
-
"@geekmidas/logger": "0.1.0"
|
|
54
|
+
"@faker-js/faker": "~9.9.0"
|
|
56
55
|
},
|
|
57
56
|
"devDependencies": {
|
|
58
|
-
"@types/pg": "~8.15.4"
|
|
57
|
+
"@types/pg": "~8.15.4",
|
|
58
|
+
"@geekmidas/logger": "^0.3.0",
|
|
59
|
+
"@geekmidas/envkit": "^0.2.0"
|
|
59
60
|
},
|
|
60
61
|
"repository": {
|
|
61
62
|
"type": "git",
|
|
@@ -74,6 +75,39 @@
|
|
|
74
75
|
"vitest": "~3.2.4",
|
|
75
76
|
"@types/aws-lambda": ">=8.10.92",
|
|
76
77
|
"better-auth": ">=1.3.34",
|
|
77
|
-
"@geekmidas/envkit": "0.
|
|
78
|
+
"@geekmidas/envkit": "^0.2.0",
|
|
79
|
+
"@geekmidas/logger": "^0.3.0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"@geekmidas/envkit": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"@geekmidas/logger": {
|
|
86
|
+
"optional": true
|
|
87
|
+
},
|
|
88
|
+
"kysely": {
|
|
89
|
+
"optional": true
|
|
90
|
+
},
|
|
91
|
+
"pg": {
|
|
92
|
+
"optional": true
|
|
93
|
+
},
|
|
94
|
+
"knex": {
|
|
95
|
+
"optional": true
|
|
96
|
+
},
|
|
97
|
+
"objection": {
|
|
98
|
+
"optional": true
|
|
99
|
+
},
|
|
100
|
+
"db-errors": {
|
|
101
|
+
"optional": true
|
|
102
|
+
},
|
|
103
|
+
"vitest": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"@types/aws-lambda": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"better-auth": {
|
|
110
|
+
"optional": true
|
|
111
|
+
}
|
|
78
112
|
}
|
|
79
113
|
}
|