Skip to content

Commit 7371139

Browse files
committed
Ignore more tysts in loose mode
1 parent e78b068 commit 7371139

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: src/tysts/batch.ts

+2
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,12 @@ async function tysts() {
160160

161161
// Enforce required fields
162162

163+
// @tysts-start: strict
163164
// @ts-expect-error - name is required
164165
$.users.update(db.users.id('user-id'), ($) => ({
165166
name: $.remove()
166167
}))
168+
// @tysts-end: strict
167169

168170
// @ts-expect-error - name is required
169171
$.users.update(db.users.id('sasha'), {

Diff for: src/tysts/transaction.ts

+2
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,12 @@ async function tysts() {
270270

271271
// Enforce required fields
272272

273+
// @tysts-start: strict
273274
// @ts-expect-error - name is required
274275
$.result.update(db.users.id('sasha'), ($) => ({
275276
name: $.remove()
276277
}))
278+
// @tysts-end: strict
277279

278280
// @ts-expect-error - name is required
279281
$.db.users.update(db.users.id('sasha'), ($) => ({

0 commit comments

Comments
 (0)