@ultimat3/testing 31.10.0 → 31.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/testing",
3
- "version": "31.10.0",
3
+ "version": "31.12.0",
4
4
  "description": "Test harness: cloned template DBs per worker, frozen clock, sealed network, 6 test types",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -47,26 +47,26 @@
47
47
  "test": "bun test"
48
48
  },
49
49
  "dependencies": {
50
- "@ultimat3/action": "31.10.0",
51
- "@ultimat3/ai": "31.10.0",
52
- "@ultimat3/auth": "31.10.0",
53
- "@ultimat3/cache": "31.10.0",
54
- "@ultimat3/core": "31.10.0",
55
- "@ultimat3/db": "31.10.0",
56
- "@ultimat3/entity": "31.10.0",
57
- "@ultimat3/http": "31.10.0",
58
- "@ultimat3/i18n": "31.10.0",
59
- "@ultimat3/jobs": "31.10.0",
60
- "@ultimat3/mail": "31.10.0",
61
- "@ultimat3/notify": "31.10.0",
62
- "@ultimat3/policy": "31.10.0",
63
- "@ultimat3/pwa": "31.10.0",
64
- "@ultimat3/query": "31.10.0",
65
- "@ultimat3/realtime": "31.10.0",
66
- "@ultimat3/render": "31.10.0",
67
- "@ultimat3/schema": "31.10.0",
68
- "@ultimat3/scraping": "31.10.0",
69
- "@ultimat3/seo": "31.10.0",
70
- "@ultimat3/time": "31.10.0"
50
+ "@ultimat3/action": "31.12.0",
51
+ "@ultimat3/ai": "31.12.0",
52
+ "@ultimat3/auth": "31.12.0",
53
+ "@ultimat3/cache": "31.12.0",
54
+ "@ultimat3/core": "31.12.0",
55
+ "@ultimat3/db": "31.12.0",
56
+ "@ultimat3/entity": "31.12.0",
57
+ "@ultimat3/http": "31.12.0",
58
+ "@ultimat3/i18n": "31.12.0",
59
+ "@ultimat3/jobs": "31.12.0",
60
+ "@ultimat3/mail": "31.12.0",
61
+ "@ultimat3/notify": "31.12.0",
62
+ "@ultimat3/policy": "31.12.0",
63
+ "@ultimat3/pwa": "31.12.0",
64
+ "@ultimat3/query": "31.12.0",
65
+ "@ultimat3/realtime": "31.12.0",
66
+ "@ultimat3/render": "31.12.0",
67
+ "@ultimat3/schema": "31.12.0",
68
+ "@ultimat3/scraping": "31.12.0",
69
+ "@ultimat3/seo": "31.12.0",
70
+ "@ultimat3/time": "31.12.0"
71
71
  }
72
72
  }
@@ -154,6 +154,20 @@ export const AUDIT_SINK_CHECKS: readonly AuditSinkCheck[] = [
154
154
  expect(await subject.kept(record.name)).toHaveLength(2);
155
155
  },
156
156
  },
157
+ {
158
+ // A group-commit sink (`postgresAuditSink({ groupCommit: true })`) shares one statement among
159
+ // concurrent writes: a batch that kept one row, or one record's facts in every row, is caught.
160
+ name: 'concurrent writes are each their own record, none lost to a batch',
161
+ async run(subject) {
162
+ const name = nameOf();
163
+ const keys = ['k1', 'k2', 'k3'];
164
+ await Promise.all(
165
+ keys.map((key) => subject.sink.write(recordFor(name, { idempotencyKey: key }))),
166
+ );
167
+ const kept = await subject.kept(name);
168
+ expect(kept.map((each) => each.idempotencyKey).sort()).toEqual(keys);
169
+ },
170
+ },
157
171
  {
158
172
  name: 'a bigint, a cycle, a Secret and a Date land without a throw, and without a secret',
159
173
  async run(subject) {