@syncular/testkit 0.20.1 → 0.21.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/README.md +3 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -184,7 +184,9 @@ await a.sync(); // wins version + 1
|
|
|
184
184
|
await b.sync(); // loses against the stale base
|
|
185
185
|
|
|
186
186
|
expect(b.api.conflicts[0]?.serverRow.title).toBe('A');
|
|
187
|
-
expect(
|
|
187
|
+
expect(
|
|
188
|
+
Object.keys(b.api.conflicts[0]?.operation?.values ?? {}),
|
|
189
|
+
).toContain('title');
|
|
188
190
|
```
|
|
189
191
|
|
|
190
192
|
Pass `validators` to `createTestSync` to exercise the same business rules as
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/testkit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Syncular test kit: in-process loopback server + clients for integration scenarios",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"test": "bun test --preload ./test/setup.ts"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@syncular/server": "0.
|
|
68
|
-
"@syncular/client": "0.
|
|
67
|
+
"@syncular/server": "0.21.0",
|
|
68
|
+
"@syncular/client": "0.21.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": ">=18.0.0"
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@happy-dom/global-registrator": "^20.0.0",
|
|
80
|
-
"@syncular/react": "0.
|
|
80
|
+
"@syncular/react": "0.21.0",
|
|
81
81
|
"@testing-library/react": "^16.1.0",
|
|
82
82
|
"@types/react": "^18.3.0",
|
|
83
83
|
"react": "^18.3.1",
|