@saluzi/saluzi-edu 0.3.2 → 0.3.4
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/package.json
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { describe, test, expect, beforeEach, mock } from 'bun:test'
|
|
2
2
|
import { randomUUID } from 'node:crypto'
|
|
3
|
+
import { tmpdir } from 'node:os'
|
|
4
|
+
import { join } from 'node:path'
|
|
3
5
|
import { mockConfigModule } from './helpers/mock-config'
|
|
4
6
|
|
|
5
7
|
mock.module('../config', () => mockConfigModule())
|
|
@@ -37,7 +39,10 @@ function freshDb(): Database {
|
|
|
37
39
|
try {
|
|
38
40
|
resetDbSingleton()
|
|
39
41
|
} catch {}
|
|
40
|
-
const uniquePath =
|
|
42
|
+
const uniquePath = join(
|
|
43
|
+
tmpdir(),
|
|
44
|
+
`rcs-design-gap-${randomUUID().replace(/-/g, '').slice(0, 8)}.db`,
|
|
45
|
+
)
|
|
41
46
|
return initDatabase(uniquePath)
|
|
42
47
|
}
|
|
43
48
|
|
|
@@ -330,7 +335,10 @@ describe('Gap 2: resolveOwnedWebSessionId removes auto-bind', () => {
|
|
|
330
335
|
resetDbSingleton()
|
|
331
336
|
} catch {}
|
|
332
337
|
initDatabase(
|
|
333
|
-
|
|
338
|
+
join(
|
|
339
|
+
tmpdir(),
|
|
340
|
+
`rcs-gap2-${randomUUID().replace(/-/g, '').slice(0, 8)}.db`,
|
|
341
|
+
),
|
|
334
342
|
)
|
|
335
343
|
})
|
|
336
344
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { describe, test, expect, beforeEach, mock } from 'bun:test'
|
|
2
2
|
import { readFileSync } from 'node:fs'
|
|
3
|
-
import {
|
|
3
|
+
import { tmpdir } from 'node:os'
|
|
4
|
+
import { join, resolve } from 'node:path'
|
|
4
5
|
import { randomUUID } from 'node:crypto'
|
|
5
6
|
import { mockConfigModule } from './helpers/mock-config'
|
|
6
7
|
|
|
@@ -34,7 +35,10 @@ function freshDb() {
|
|
|
34
35
|
} catch {
|
|
35
36
|
// ignore
|
|
36
37
|
}
|
|
37
|
-
const uniquePath =
|
|
38
|
+
const uniquePath = join(
|
|
39
|
+
tmpdir(),
|
|
40
|
+
`rcs-low-fixes-${randomUUID().replace(/-/g, '').slice(0, 8)}.db`,
|
|
41
|
+
)
|
|
38
42
|
return initDatabase(uniquePath)
|
|
39
43
|
}
|
|
40
44
|
|