diff --git a/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts b/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts index ac70ddd63f7..c64bedb1ed2 100644 --- a/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts +++ b/packages/cli/src/commands/validate-json-strict-exit.e2e.test.ts @@ -170,7 +170,15 @@ export default defineStack({ }, { strict: false }); `; -/** The zero-warning control — pins the other end of the matrix. */ +/** + * The zero-warning control — pins the other end of the matrix. + * + * The app opens its object from navigation and the object declares a list + * view: without the entry the app-shell rules raise `app-navigation-empty` and + * `object-unreachable-from-navigation`, and with the entry but no view they + * raise `object-without-view`, each a warning `--strict` promotes. The fixtures + * below copy this object and app, for the same reason. + */ const CLEAN_SOURCE = ` import { defineStack } from '@objectstack/spec'; @@ -181,8 +189,13 @@ export default defineStack({ label: 'Ticket', sharingModel: 'private', fields: { title: { type: 'text', label: 'Title' } }, + listViews: { all: { type: 'grid', columns: ['title'] } }, + }], + apps: [{ + name: 'strictexit_app', + label: 'Strict Exit App', + navigation: [{ id: 'nav_ticket', type: 'object', label: 'Tickets', objectName: 'strictexit_ticket' }], }], - apps: [{ name: 'strictexit_app', label: 'Strict Exit App' }], }, { strict: false }); `; @@ -210,8 +223,13 @@ export default defineStack({ label: 'Ticket', sharingModel: 'private', fields: { title: { type: 'text', label: 'Title' } }, + listViews: { all: { type: 'grid', columns: ['title'] } }, + }], + apps: [{ + name: 'strictexit_app', + label: 'Strict Exit App', + navigation: [{ id: 'nav_ticket', type: 'object', label: 'Tickets', objectName: 'strictexit_ticket' }], }], - apps: [{ name: 'strictexit_app', label: 'Strict Exit App' }], flows: [{ name: 'strictexit_notify', label: 'Notify', @@ -249,8 +267,13 @@ export default defineStack({ label: 'Ticket', sharingModel: 'private', fields: { title: { type: 'text', label: 'Title' } }, + listViews: { all: { type: 'grid', columns: ['title'] } }, + }], + apps: [{ + name: 'strictexit_app', + label: 'Strict Exit App', + navigation: [{ id: 'nav_ticket', type: 'object', label: 'Tickets', objectName: 'strictexit_ticket' }], }], - apps: [{ name: 'strictexit_app', label: 'Strict Exit App' }], ${finding === 'info' ? ` permissions: [{ name: 'strictexit_reader', label: 'Reader', objects: { strictexit_ticket: { allowRead: true } } }],` : ` tools: [{ diff --git a/packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts b/packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts index bce10f923db..9d02bcf3599 100644 --- a/packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts +++ b/packages/cli/test/jsx-gate-manifest-notice.e2e.test.ts @@ -125,17 +125,20 @@ function noticesIn(payload: Record): Array