@better-auth/test-utils 1.5.7-beta.1 → 1.6.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.
@@ -2,8 +2,9 @@ import { Logger, testAdapter } from "./test-adapter.mjs";
2
2
  import { InsertRandomFn, TestEntry, TestSuiteStats, createTestSuite } from "./create-test-suite.mjs";
3
3
  import { authFlowTestSuite } from "./suites/auth-flow.mjs";
4
4
  import { enableJoinTests, getNormalTestSuiteTests, normalTestSuite } from "./suites/basic.mjs";
5
+ import { caseInsensitiveTestSuite } from "./suites/case-insensitive.mjs";
5
6
  import { joinsTestSuite } from "./suites/joins.mjs";
6
7
  import { numberIdTestSuite } from "./suites/number-id.mjs";
7
8
  import { transactionsTestSuite } from "./suites/transactions.mjs";
8
9
  import { uuidTestSuite } from "./suites/uuid.mjs";
9
- export { type InsertRandomFn, type Logger, type TestEntry, type TestSuiteStats, authFlowTestSuite, createTestSuite, enableJoinTests, getNormalTestSuiteTests, joinsTestSuite, normalTestSuite, numberIdTestSuite, testAdapter, transactionsTestSuite, uuidTestSuite };
10
+ export { type InsertRandomFn, type Logger, type TestEntry, type TestSuiteStats, authFlowTestSuite, caseInsensitiveTestSuite, createTestSuite, enableJoinTests, getNormalTestSuiteTests, joinsTestSuite, normalTestSuite, numberIdTestSuite, testAdapter, transactionsTestSuite, uuidTestSuite };
package/dist/adapter.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { createTestSuite } from "./create-test-suite.mjs";
2
2
  import { authFlowTestSuite } from "./suites/auth-flow.mjs";
3
3
  import { enableJoinTests, getNormalTestSuiteTests, normalTestSuite } from "./suites/basic.mjs";
4
+ import { caseInsensitiveTestSuite } from "./suites/case-insensitive.mjs";
4
5
  import { joinsTestSuite } from "./suites/joins.mjs";
5
6
  import { numberIdTestSuite } from "./suites/number-id.mjs";
6
7
  import { transactionsTestSuite } from "./suites/transactions.mjs";
7
8
  import { uuidTestSuite } from "./suites/uuid.mjs";
8
- import "./suites/index.mjs";
9
9
  import { testAdapter } from "./test-adapter.mjs";
10
- export { authFlowTestSuite, createTestSuite, enableJoinTests, getNormalTestSuiteTests, joinsTestSuite, normalTestSuite, numberIdTestSuite, testAdapter, transactionsTestSuite, uuidTestSuite };
10
+ export { authFlowTestSuite, caseInsensitiveTestSuite, createTestSuite, enableJoinTests, getNormalTestSuiteTests, joinsTestSuite, normalTestSuite, numberIdTestSuite, testAdapter, transactionsTestSuite, uuidTestSuite };
@@ -114,5 +114,4 @@ declare const createTestSuite: <Tests extends Record<string, TestEntry>, Additio
114
114
  transformIdOutput?: (id: any) => string | undefined;
115
115
  }) => Promise<void>;
116
116
  //#endregion
117
- export { InsertRandomFn, TestEntry, TestSuiteStats, createTestSuite };
118
- //# sourceMappingURL=create-test-suite.d.mts.map
117
+ export { InsertRandomFn, TestEntry, TestSuiteStats, createTestSuite };
@@ -457,5 +457,3 @@ const createTestSuite = (suiteName, config, tests) => {
457
457
  };
458
458
  //#endregion
459
459
  export { createTestSuite };
460
-
461
- //# sourceMappingURL=create-test-suite.mjs.map
@@ -26,5 +26,4 @@ declare const authFlowTestSuite: (options?: ({
26
26
  transformIdOutput?: ((id: any) => string | undefined) | undefined;
27
27
  }) => Promise<void>;
28
28
  //#endregion
29
- export { authFlowTestSuite };
30
- //# sourceMappingURL=auth-flow.d.mts.map
29
+ export { authFlowTestSuite };
@@ -91,23 +91,27 @@ const authFlowTestSuite = createTestSuite("auth-flow", { defaultBetterAuthOption
91
91
  expect(error).toBeDefined();
92
92
  },
93
93
  "should store and retrieve timestamps correctly across timezones": async () => {
94
- using _ = recoverProcessTZ();
95
- const auth = await getAuth();
96
- const user = await generate("user");
97
- const password = crypto.randomUUID();
98
- const userSignUp = await auth.api.signUpEmail({ body: {
99
- email: user.email,
100
- password,
101
- name: user.name,
102
- image: user.image || ""
103
- } });
104
- process.env.TZ = "Europe/London";
105
- const userSignIn = await auth.api.signInEmail({ body: {
106
- email: user.email,
107
- password
108
- } });
109
- process.env.TZ = "America/Los_Angeles";
110
- expect(userSignUp.user.createdAt.toISOString()).toStrictEqual(userSignIn.user.createdAt.toISOString());
94
+ const originalTZ = process.env.TZ;
95
+ try {
96
+ const auth = await getAuth();
97
+ const user = await generate("user");
98
+ const password = crypto.randomUUID();
99
+ const userSignUp = await auth.api.signUpEmail({ body: {
100
+ email: user.email,
101
+ password,
102
+ name: user.name,
103
+ image: user.image || ""
104
+ } });
105
+ process.env.TZ = "Europe/London";
106
+ const userSignIn = await auth.api.signInEmail({ body: {
107
+ email: user.email,
108
+ password
109
+ } });
110
+ process.env.TZ = "America/Los_Angeles";
111
+ expect(userSignUp.user.createdAt.toISOString()).toStrictEqual(userSignIn.user.createdAt.toISOString());
112
+ } finally {
113
+ process.env.TZ = originalTZ;
114
+ }
111
115
  },
112
116
  "should sign up with additional fields": async () => {
113
117
  await modifyBetterAuthOptions({ user: { additionalFields: { dateField: { type: "date" } } } }, true);
@@ -128,13 +132,5 @@ const authFlowTestSuite = createTestSuite("auth-flow", { defaultBetterAuthOption
128
132
  expect((await auth.api.getSession({ headers }))?.user.dateField).toStrictEqual(dateField);
129
133
  }
130
134
  }));
131
- function recoverProcessTZ() {
132
- const originalTZ = process.env.TZ;
133
- return { [Symbol.dispose]: () => {
134
- process.env.TZ = originalTZ;
135
- } };
136
- }
137
135
  //#endregion
138
136
  export { authFlowTestSuite };
139
-
140
- //# sourceMappingURL=auth-flow.mjs.map
@@ -206,5 +206,4 @@ declare const getNormalTestSuiteTests: ({
206
206
  };
207
207
  declare const enableJoinTests: Partial<Record<"create - should create a model" | "create - should always return an id" | "create - should use generateId if provided" | "create - should return null for nullable foreign keys" | "create - should apply default values to fields" | "findOne - should find a model" | "findOne - should not apply defaultValue if value not found" | "findOne - should find a model using a reference field" | "findOne - should not throw on record not found" | "findOne - should find a model without id" | "findOne - should find a model with join" | "findOne - should find a model with modified field name" | "findOne - should find a model with modified model name" | "findOne - should find a model with additional fields" | "findOne - should select fields" | "findOne - should select fields with one-to-many join" | "findOne - should select fields with one-to-one join" | "findOne - should select fields with multiple joins" | "findOne - should find model with date field" | "findOne - should perform backwards joins" | "findOne - should return an object for one-to-one joins" | "findOne - should return an array for one-to-many joins" | "findOne - should work with both one-to-one and one-to-many joins" | "findOne - should return null for failed base model lookup that has joins" | "findOne - should join a model with modified field name" | "findMany - should find many models" | "findMany - should find many models with date fields" | "findMany - should find many models with join" | "findMany - should find many with join and limit" | "findMany - should select fields" | "findMany - should select fields with one-to-many join" | "findMany - should select fields with one-to-one join" | "findMany - should select fields with multiple joins" | "findMany - should find many with join and offset" | "findMany - should find many with join and sortBy" | "findMany - should find many with join and where clause" | "findMany - should find many with join, where, limit, and offset" | "findMany - should find many with one-to-one join" | "findMany - should find many with both one-to-one and one-to-many joins" | "findMany - should return an empty array when no models are found" | "findMany - should return empty array when base records don't exist with joins" | "findMany - should find many models with starts_with operator" | "findMany - starts_with should not interpret regex patterns" | "findMany - ends_with should not interpret regex patterns" | "findMany - contains should not interpret regex patterns" | "findMany - should find many models with ends_with operator" | "findMany - should find many models with contains operator" | "findMany - should handle multiple where conditions with different operators" | "findMany - should find many models with contains operator (using symbol)" | "findMany - should find many models with eq operator" | "findMany - should find many models with ne operator" | "findMany - should find many models with gt operator" | "findMany - should find many models with gte operator" | "findMany - should find many models with lte operator" | "findMany - should find many models with lt operator" | "findMany - should find many models with in operator" | "findMany - should find many models with not_in operator" | "findMany - should find many models with sortBy" | "findMany - should find many models with limit" | "findMany - should find many models with offset" | "findMany - should find many models with limit and offset" | "findMany - should find many models with sortBy and offset" | "findMany - should find many models with sortBy and limit" | "findMany - should find many models with sortBy and limit and offset" | "findMany - should find many models with sortBy and limit and offset and where" | "update - should update a model" | "updateMany - should update all models when where is empty" | "updateMany - should update many models with a specific where" | "updateMany - should update many models with a multiple where" | "delete - should delete a model" | "delete - should not throw on record not found" | "delete - should delete by non-unique field" | "deleteMany - should delete many models" | "deleteMany - starts_with should not interpret regex patterns" | "deleteMany - ends_with should not interpret regex patterns" | "deleteMany - contains should not interpret regex patterns" | "deleteMany - should delete many models with numeric values" | "deleteMany - should delete many models with boolean values" | "count - should count many models" | "count - should return 0 with no rows to count" | "count - should count with where clause" | "update - should correctly return record when updating a field used in where clause" | "update - should handle updating multiple fields including where clause field" | "update - should work when updated field is not in where clause" | "findOne - backwards join should only return single record not array" | "findMany - backwards join should only return single record not array" | "findOne - backwards join with modified field name (session base, users-table join)" | "findOne - multiple joins should return result even when some joined tables have no matching rows" | "findOne - should be able to perform a limited join" | "findOne - should be able to perform a complex limited join" | "findMany - should be able to perform a limited join" | "findMany - should be able to perform a complex limited join" | "findOne - should return null for one-to-one join when joined record doesn't exist" | "findMany - should return null for one-to-one join when joined records don't exist" | "findMany - should return empty array for one-to-many join when joined records don't exist" | "findMany - should handle mixed joins correctly when some are missing" | "create - should support arrays" | "create - should support json" | "update - should support multiple where conditions under AND connector with unique field" | "findMany - eq operator with null value (single condition) should use IS NULL" | "findMany - eq and ne operators with null value in AND group should use IS NULL / IS NOT NULL" | "findMany - eq and ne operators with null value in OR group should use IS NULL / IS NOT NULL" | "update - should return updated record when where condition uses null value", boolean>>;
208
208
  //#endregion
209
- export { enableJoinTests, getNormalTestSuiteTests, normalTestSuite };
210
- //# sourceMappingURL=basic.d.mts.map
209
+ export { enableJoinTests, getNormalTestSuiteTests, normalTestSuite };
@@ -2919,5 +2919,3 @@ const enableJoinTests = getTestKeys().reduce((acc, test) => {
2919
2919
  }, {});
2920
2920
  //#endregion
2921
2921
  export { enableJoinTests, getNormalTestSuiteTests, normalTestSuite };
2922
-
2923
- //# sourceMappingURL=basic.mjs.map
@@ -0,0 +1,27 @@
1
+ import * as better_auth0 from "better-auth";
2
+ import * as _better_auth_test_utils_adapter0 from "@better-auth/test-utils/adapter";
3
+
4
+ //#region src/adapter/suites/case-insensitive.d.ts
5
+ /**
6
+ * Test suite for case-insensitive string operations across adapters.
7
+ * Tests eq, ne, in, not_in, contains, starts_with, ends_with with mode: "insensitive".
8
+ */
9
+ declare const caseInsensitiveTestSuite: (options?: {
10
+ disableTests?: Partial<Record<"findOne - eq with mode insensitive should match regardless of case" | "findOne - eq with mode sensitive (default) should not match different case" | "findMany - eq with mode insensitive" | "findMany - ne with mode insensitive" | "findMany - in with mode insensitive" | "findMany - not_in with mode insensitive" | "findMany - contains with mode insensitive" | "findMany - starts_with with mode insensitive" | "findMany - ends_with with mode insensitive" | "count - with mode insensitive" | "update - where with mode insensitive" | "deleteMany - where with mode insensitive", boolean> & {
11
+ ALL?: boolean;
12
+ }> | undefined;
13
+ } | undefined) => (helpers: {
14
+ adapter: () => Promise<better_auth0.DBAdapter<better_auth0.BetterAuthOptions>>;
15
+ log: _better_auth_test_utils_adapter0.Logger;
16
+ adapterDisplayName: string;
17
+ getBetterAuthOptions: () => better_auth0.BetterAuthOptions;
18
+ modifyBetterAuthOptions: (options: better_auth0.BetterAuthOptions) => Promise<better_auth0.BetterAuthOptions>;
19
+ cleanup: () => Promise<void>;
20
+ runMigrations: () => Promise<void>;
21
+ prefixTests?: string | undefined;
22
+ onTestFinish: (stats: _better_auth_test_utils_adapter0.TestSuiteStats) => Promise<void>;
23
+ customIdGenerator?: (() => any | Promise<any> | undefined) | undefined;
24
+ transformIdOutput?: ((id: any) => string | undefined) | undefined;
25
+ }) => Promise<void>;
26
+ //#endregion
27
+ export { caseInsensitiveTestSuite };
@@ -0,0 +1,297 @@
1
+ import { expect } from "vitest";
2
+ import { createTestSuite } from "@better-auth/test-utils/adapter";
3
+ //#region src/adapter/suites/case-insensitive.ts
4
+ /**
5
+ * Test suite for case-insensitive string operations across adapters.
6
+ * Tests eq, ne, in, not_in, contains, starts_with, ends_with with mode: "insensitive".
7
+ */
8
+ const caseInsensitiveTestSuite = createTestSuite("case-insensitive", {}, (helpers) => {
9
+ const { adapter, insertRandom, generate } = helpers;
10
+ return {
11
+ "findOne - eq with mode insensitive should match regardless of case": async () => {
12
+ const user = await adapter.create({
13
+ model: "user",
14
+ data: {
15
+ ...await generate("user"),
16
+ email: "TestUser@Example.COM",
17
+ name: "CaseTest"
18
+ },
19
+ forceAllowId: true
20
+ });
21
+ const result = await adapter.findOne({
22
+ model: "user",
23
+ where: [{
24
+ field: "email",
25
+ value: "testuser@example.com",
26
+ operator: "eq",
27
+ mode: "insensitive"
28
+ }]
29
+ });
30
+ expect(result).not.toBeNull();
31
+ expect(result?.id).toBe(user.id);
32
+ expect(result?.email).toBe("TestUser@Example.COM");
33
+ },
34
+ "findOne - eq with mode sensitive (default) should not match different case": async () => {
35
+ await adapter.create({
36
+ model: "user",
37
+ data: {
38
+ ...await generate("user"),
39
+ email: "ExactCase@Test.com",
40
+ name: "ExactCase"
41
+ },
42
+ forceAllowId: true
43
+ });
44
+ expect(await adapter.findOne({
45
+ model: "user",
46
+ where: [{
47
+ field: "email",
48
+ value: "exactcase@test.com",
49
+ operator: "eq",
50
+ mode: "sensitive"
51
+ }]
52
+ })).toBeNull();
53
+ },
54
+ "findMany - eq with mode insensitive": async () => {
55
+ const user = await adapter.create({
56
+ model: "user",
57
+ data: {
58
+ ...await generate("user"),
59
+ email: "FindMany@EQ.Test",
60
+ name: "FindManyEQ"
61
+ },
62
+ forceAllowId: true
63
+ });
64
+ const result = await adapter.findMany({
65
+ model: "user",
66
+ where: [{
67
+ field: "email",
68
+ value: "findmany@eq.test",
69
+ operator: "eq",
70
+ mode: "insensitive"
71
+ }]
72
+ });
73
+ expect(result).toHaveLength(1);
74
+ expect(result[0]?.id).toBe(user.id);
75
+ },
76
+ "findMany - ne with mode insensitive": async () => {
77
+ const users = (await insertRandom("user", 3)).map((x) => x[0]);
78
+ const targetEmail = "ExcludeMe@NE.Test";
79
+ const excludeUser = await adapter.create({
80
+ model: "user",
81
+ data: {
82
+ ...await generate("user"),
83
+ email: targetEmail,
84
+ name: "ExcludeMe"
85
+ },
86
+ forceAllowId: true
87
+ });
88
+ const resultIds = (await adapter.findMany({
89
+ model: "user",
90
+ where: [{
91
+ field: "email",
92
+ value: "excludeme@ne.test",
93
+ operator: "ne",
94
+ mode: "insensitive"
95
+ }]
96
+ })).map((u) => u.id);
97
+ expect(resultIds).not.toContain(excludeUser.id);
98
+ expect(resultIds).toContain(users[0].id);
99
+ },
100
+ "findMany - in with mode insensitive": async () => {
101
+ const user = await adapter.create({
102
+ model: "user",
103
+ data: {
104
+ ...await generate("user"),
105
+ email: "InArray@Test.COM",
106
+ name: "InArray"
107
+ },
108
+ forceAllowId: true
109
+ });
110
+ const result = await adapter.findMany({
111
+ model: "user",
112
+ where: [{
113
+ field: "email",
114
+ value: [
115
+ "other@test.com",
116
+ "inarray@test.com",
117
+ "third@test.com"
118
+ ],
119
+ operator: "in",
120
+ mode: "insensitive"
121
+ }]
122
+ });
123
+ expect(result).toHaveLength(1);
124
+ expect(result[0]?.id).toBe(user.id);
125
+ },
126
+ "findMany - not_in with mode insensitive": async () => {
127
+ const users = (await insertRandom("user", 2)).map((x) => x[0]);
128
+ const excludeUser = await adapter.create({
129
+ model: "user",
130
+ data: {
131
+ ...await generate("user"),
132
+ email: "NotIn@Exclude.Test",
133
+ name: "NotIn"
134
+ },
135
+ forceAllowId: true
136
+ });
137
+ const resultIds = (await adapter.findMany({
138
+ model: "user",
139
+ where: [{
140
+ field: "email",
141
+ value: ["notin@exclude.test"],
142
+ operator: "not_in",
143
+ mode: "insensitive"
144
+ }]
145
+ })).map((u) => u.id);
146
+ expect(resultIds).not.toContain(excludeUser.id);
147
+ expect(resultIds).toContain(users[0].id);
148
+ },
149
+ "findMany - contains with mode insensitive": async () => {
150
+ const user = await adapter.create({
151
+ model: "user",
152
+ data: {
153
+ ...await generate("user"),
154
+ email: "prefixCONTAINSsuffix@test.com",
155
+ name: "Contains"
156
+ },
157
+ forceAllowId: true
158
+ });
159
+ const result = await adapter.findMany({
160
+ model: "user",
161
+ where: [{
162
+ field: "email",
163
+ value: "containssuffix",
164
+ operator: "contains",
165
+ mode: "insensitive"
166
+ }]
167
+ });
168
+ expect(result.length).toBeGreaterThanOrEqual(1);
169
+ expect(result.some((u) => u.id === user.id)).toBe(true);
170
+ },
171
+ "findMany - starts_with with mode insensitive": async () => {
172
+ const user = await adapter.create({
173
+ model: "user",
174
+ data: {
175
+ ...await generate("user"),
176
+ email: "STARTSwith@test.com",
177
+ name: "StartsWith"
178
+ },
179
+ forceAllowId: true
180
+ });
181
+ const result = await adapter.findMany({
182
+ model: "user",
183
+ where: [{
184
+ field: "email",
185
+ value: "starts",
186
+ operator: "starts_with",
187
+ mode: "insensitive"
188
+ }]
189
+ });
190
+ expect(result.length).toBeGreaterThanOrEqual(1);
191
+ expect(result.some((u) => u.id === user.id)).toBe(true);
192
+ },
193
+ "findMany - ends_with with mode insensitive": async () => {
194
+ const user = await adapter.create({
195
+ model: "user",
196
+ data: {
197
+ ...await generate("user"),
198
+ email: "user@ENDSWITH.Com",
199
+ name: "EndsWith"
200
+ },
201
+ forceAllowId: true
202
+ });
203
+ const result = await adapter.findMany({
204
+ model: "user",
205
+ where: [{
206
+ field: "email",
207
+ value: "endswith.com",
208
+ operator: "ends_with",
209
+ mode: "insensitive"
210
+ }]
211
+ });
212
+ expect(result.length).toBeGreaterThanOrEqual(1);
213
+ expect(result.some((u) => u.id === user.id)).toBe(true);
214
+ },
215
+ "count - with mode insensitive": async () => {
216
+ await adapter.create({
217
+ model: "user",
218
+ data: {
219
+ ...await generate("user"),
220
+ email: "CountTest@Case.INSENSITIVE",
221
+ name: "CountTest"
222
+ },
223
+ forceAllowId: true
224
+ });
225
+ expect(await adapter.count({
226
+ model: "user",
227
+ where: [{
228
+ field: "email",
229
+ value: "counttest@case.insensitive",
230
+ operator: "eq",
231
+ mode: "insensitive"
232
+ }]
233
+ })).toBeGreaterThanOrEqual(1);
234
+ },
235
+ "update - where with mode insensitive": async () => {
236
+ const user = await adapter.create({
237
+ model: "user",
238
+ data: {
239
+ ...await generate("user"),
240
+ email: "UpdateWhere@Insensitive.Test",
241
+ name: "BeforeUpdate"
242
+ },
243
+ forceAllowId: true
244
+ });
245
+ const result = await adapter.update({
246
+ model: "user",
247
+ where: [{
248
+ field: "email",
249
+ value: "updatewhere@insensitive.test",
250
+ operator: "eq",
251
+ mode: "insensitive"
252
+ }],
253
+ update: { name: "AfterUpdate" }
254
+ });
255
+ expect(result).not.toBeNull();
256
+ expect(result?.name).toBe("AfterUpdate");
257
+ expect(result?.id).toBe(user.id);
258
+ },
259
+ "deleteMany - where with mode insensitive": async () => {
260
+ const keepUser = (await insertRandom("user"))[0];
261
+ const deleteUser = await adapter.create({
262
+ model: "user",
263
+ data: {
264
+ ...await generate("user"),
265
+ email: "DeleteMany@Case.INSENSITIVE",
266
+ name: "ToDelete"
267
+ },
268
+ forceAllowId: true
269
+ });
270
+ await adapter.deleteMany({
271
+ model: "user",
272
+ where: [{
273
+ field: "email",
274
+ value: "deletemany@case.insensitive",
275
+ operator: "eq",
276
+ mode: "insensitive"
277
+ }]
278
+ });
279
+ expect(await adapter.findOne({
280
+ model: "user",
281
+ where: [{
282
+ field: "id",
283
+ value: deleteUser.id
284
+ }]
285
+ })).toBeNull();
286
+ expect(await adapter.findOne({
287
+ model: "user",
288
+ where: [{
289
+ field: "id",
290
+ value: keepUser.id
291
+ }]
292
+ })).not.toBeNull();
293
+ }
294
+ };
295
+ });
296
+ //#endregion
297
+ export { caseInsensitiveTestSuite };
@@ -1,5 +1,6 @@
1
1
  import { authFlowTestSuite } from "./auth-flow.mjs";
2
2
  import { enableJoinTests, getNormalTestSuiteTests, normalTestSuite } from "./basic.mjs";
3
+ import { caseInsensitiveTestSuite } from "./case-insensitive.mjs";
3
4
  import { joinsTestSuite } from "./joins.mjs";
4
5
  import { numberIdTestSuite } from "./number-id.mjs";
5
6
  import { transactionsTestSuite } from "./transactions.mjs";
@@ -21,5 +21,4 @@ declare const joinsTestSuite: (options?: {
21
21
  transformIdOutput?: ((id: any) => string | undefined) | undefined;
22
22
  }) => Promise<void>;
23
23
  //#endregion
24
- export { joinsTestSuite };
25
- //# sourceMappingURL=joins.d.mts.map
24
+ export { joinsTestSuite };
@@ -17,5 +17,3 @@ const joinsTestSuite = createTestSuite("joins", {
17
17
  });
18
18
  //#endregion
19
19
  export { joinsTestSuite };
20
-
21
- //# sourceMappingURL=joins.mjs.map
@@ -21,5 +21,4 @@ declare const numberIdTestSuite: (options?: {
21
21
  transformIdOutput?: ((id: any) => string | undefined) | undefined;
22
22
  }) => Promise<void>;
23
23
  //#endregion
24
- export { numberIdTestSuite };
25
- //# sourceMappingURL=number-id.d.mts.map
24
+ export { numberIdTestSuite };
@@ -28,5 +28,3 @@ const numberIdTestSuite = createTestSuite("number-id", {
28
28
  });
29
29
  //#endregion
30
30
  export { numberIdTestSuite };
31
-
32
- //# sourceMappingURL=number-id.mjs.map
@@ -24,5 +24,4 @@ declare const transactionsTestSuite: (options?: {
24
24
  transformIdOutput?: ((id: any) => string | undefined) | undefined;
25
25
  }) => Promise<void>;
26
26
  //#endregion
27
- export { transactionsTestSuite };
28
- //# sourceMappingURL=transactions.d.mts.map
27
+ export { transactionsTestSuite };
@@ -26,5 +26,3 @@ const transactionsTestSuite = createTestSuite("transactions", {}, ({ adapter, ge
26
26
  } }));
27
27
  //#endregion
28
28
  export { transactionsTestSuite };
29
-
30
- //# sourceMappingURL=transactions.mjs.map
@@ -21,5 +21,4 @@ declare const uuidTestSuite: (options?: {
21
21
  transformIdOutput?: ((id: any) => string | undefined) | undefined;
22
22
  }) => Promise<void>;
23
23
  //#endregion
24
- export { uuidTestSuite };
25
- //# sourceMappingURL=uuid.d.mts.map
24
+ export { uuidTestSuite };
@@ -50,5 +50,3 @@ const uuidTestSuite = createTestSuite("uuid", {
50
50
  });
51
51
  //#endregion
52
52
  export { uuidTestSuite };
53
-
54
- //# sourceMappingURL=uuid.mjs.map
@@ -72,5 +72,4 @@ declare const testAdapter: ({
72
72
  execute: () => void;
73
73
  }>;
74
74
  //#endregion
75
- export { Logger, testAdapter };
76
- //# sourceMappingURL=test-adapter.d.mts.map
75
+ export { Logger, testAdapter };
@@ -158,5 +158,3 @@ const testAdapter = async ({ adapter: getAdapter, runMigrations, overrideBetterA
158
158
  };
159
159
  //#endregion
160
160
  export { testAdapter };
161
-
162
- //# sourceMappingURL=test-adapter.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/test-utils",
3
- "version": "1.5.7-beta.1",
3
+ "version": "1.6.0",
4
4
  "description": "Testing utilities for Better Auth adapter development",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,6 +19,7 @@
19
19
  "publishConfig": {
20
20
  "access": "public"
21
21
  },
22
+ "sideEffects": false,
22
23
  "files": [
23
24
  "dist"
24
25
  ],
@@ -32,13 +33,13 @@
32
33
  "devDependencies": {
33
34
  "tsdown": "0.21.1",
34
35
  "vitest": "^4.0.18",
35
- "@better-auth/core": "1.5.7-beta.1",
36
- "better-auth": "1.5.7-beta.1"
36
+ "@better-auth/core": "1.6.0",
37
+ "better-auth": "1.6.0"
37
38
  },
38
39
  "peerDependencies": {
39
40
  "vitest": "^4.0.18",
40
- "@better-auth/core": "1.5.7-beta.1",
41
- "better-auth": "1.5.7-beta.1"
41
+ "@better-auth/core": "^1.6.0",
42
+ "better-auth": "^1.6.0"
42
43
  },
43
44
  "scripts": {
44
45
  "build": "tsdown",