@forthtilliath/expo-test-kit 0.3.0 → 0.3.1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTestDb.d.ts","sourceRoot":"","sources":["../../src/sqlite/createTestDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMlE,MAAM,MAAM,MAAM,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACxD,cAAc,CAAC,OAAO,CAAC,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKJ,eAAO,MAAM,aAAa,yBAAgC,CAAC;AAS3D,wBAAsB,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,MAAM,EAAE,OAAO,EACf,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"createTestDb.d.ts","sourceRoot":"","sources":["../../src/sqlite/createTestDb.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAgB,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAMlE,MAAM,MAAM,MAAM,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACxD,cAAc,CAAC,OAAO,CAAC,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAKJ,eAAO,MAAM,aAAa,yBAAgC,CAAC;AAS3D,wBAAsB,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACxE,MAAM,EAAE,OAAO,EACf,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAgB1B"}
|
|
@@ -23,6 +23,9 @@ export async function createTestDb(schema, migrationsFolder) {
|
|
|
23
23
|
const client = createClient({ url: `file:${dbFile}` });
|
|
24
24
|
const db = drizzle(client, { schema });
|
|
25
25
|
await migrate(db, { migrationsFolder });
|
|
26
|
+
// libsql already enables foreign keys by default (on every connection,
|
|
27
|
+
// transactions included — checked by this package's tests); kept explicit
|
|
28
|
+
// so the tests don't silently depend on that default.
|
|
26
29
|
await client.execute("PRAGMA foreign_keys = ON;");
|
|
27
30
|
tempFilesByDb.set(db, dbFile);
|
|
28
31
|
return db;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forthtilliath/expo-test-kit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"drizzle-orm": "^0.45.2",
|
|
30
30
|
"eslint": "10.7.0",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
|
-
"vitest": "^
|
|
33
|
-
"@forthtilliath/eslint-config": "0.
|
|
34
|
-
"@forthtilliath/typescript-config": "0.
|
|
32
|
+
"vitest": "^5.0.2",
|
|
33
|
+
"@forthtilliath/eslint-config": "0.8.0",
|
|
34
|
+
"@forthtilliath/typescript-config": "0.1.1"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"lint": "eslint . --max-warnings 0",
|
|
38
38
|
"check-types": "tsc --noEmit",
|
|
39
|
-
"clean": "
|
|
39
|
+
"clean": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\"",
|
|
40
40
|
"dev": "tsc --watch -p tsconfig.build.json",
|
|
41
41
|
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
42
42
|
"test": "vitest run",
|