@jskit-ai/agent-docs 0.1.374 → 0.1.375
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/guide/agent/app-setup/database-layer.md +42 -18
- package/guide/agent/framework/data-access.md +4 -2
- package/guide/agent/framework/material-3.md +4 -2
- package/guide/agent/framework/test-pass.md +55 -4
- package/guide/agent/framework/typed-features.md +45 -3
- package/package.json +1 -1
- package/patterns/feature-package/example/booking-engine/package.json +1 -1
- package/patterns/minimal-foundation/example/AGENTS.md +4 -2
- package/patterns/minimal-foundation/example/package.json +3 -3
- package/patterns/shell-foundation/example/AGENTS.md +4 -2
- package/patterns/shell-foundation/example/package.json +4 -4
- package/patterns/shell-foundation/example/packages/main/package.json +1 -1
- package/patterns/shell-foundation/example/src/components/ShellLayout.vue +13 -10
- package/reference/autogen/KERNEL_MAP.md +2 -0
- package/reference/autogen/PATTERN_INDEX.md +39 -39
- package/reference/autogen/packages/agent-docs.md +1 -1
- package/reference/autogen/packages/assistant-core.md +11 -8
- package/reference/autogen/packages/database-runtime.md +26 -4
- package/reference/autogen/packages/kernel.md +5 -2
- package/reference/autogen/packages/oidc-issuer-core.md +2 -2
- package/reference/autogen/packages/resource-runtime.md +1 -1
- package/reference/autogen/packages/shell-web.md +9 -1
- package/reference/autogen/tooling/jskit-catalog.md +31 -16
- package/reference/autogen/tooling/jskit-release.md +2 -1
- package/reference/autogen/tooling/testUtils.md +7 -0
- package/skills/jskit/references/data-access.md +4 -2
- package/skills/jskit/references/database-layer.md +42 -18
- package/skills/jskit/references/material-3.md +4 -2
- package/skills/jskit/references/pattern-index.md +39 -39
- package/skills/jskit/references/patterns/app/minimal-foundation/example/AGENTS.md +4 -2
- package/skills/jskit/references/patterns/app/minimal-foundation/example/package.json +3 -3
- package/skills/jskit/references/patterns/app/shell-foundation/example/AGENTS.md +4 -2
- package/skills/jskit/references/patterns/app/shell-foundation/example/package.json +4 -4
- package/skills/jskit/references/patterns/app/shell-foundation/example/packages/main/package.json +1 -1
- package/skills/jskit/references/patterns/app/shell-foundation/example/src/components/ShellLayout.vue +13 -10
- package/skills/jskit/references/patterns/auth/accounts-hub/example/package.json +3 -3
- package/skills/jskit/references/patterns/auth/oidc-sign-in/example/package.json +2 -2
- package/skills/jskit/references/patterns/auth/supabase-auth/example/package.json +1 -1
- package/skills/jskit/references/patterns/connectors/calendar-cli/example/package.json +5 -5
- package/skills/jskit/references/patterns/crud/crud-feature-package/example/packages/books/package.json +3 -3
- package/skills/jskit/references/patterns/crud/crud-screen-set/PATTERN.md +3 -1
- package/skills/jskit/references/patterns/database/mysql-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/database/postgres-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/realtime/realtime-application/example/package.json +2 -2
- package/skills/jskit/references/patterns/server/feature-package/example/booking-engine/package.json +1 -1
- package/skills/jskit/references/patterns/shell/application-shell/example/src/components/ShellLayout.vue +13 -10
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users/package.json +3 -3
- package/skills/jskit/references/patterns/users/user-administration-server/example/packages/users-workspace/package.json +6 -6
- package/skills/jskit/references/test-pass.md +55 -4
- package/skills/jskit/references/typed-features.md +45 -3
|
@@ -395,23 +395,39 @@ the application's `knexfile.js`:
|
|
|
395
395
|
those two replaced, is set.
|
|
396
396
|
Every file starts from the snapshot, rows included: a copy an earlier file of
|
|
397
397
|
the run used is restored before the next file takes it, so no file sees what
|
|
398
|
-
another wrote.
|
|
398
|
+
another wrote. The run restores it in the background as soon as that file
|
|
399
|
+
ends, and when more files follow than run at once it keeps spare copies
|
|
400
|
+
ready, the next numbered ones, one for every four files at once, which it
|
|
401
|
+
makes in the background as the first files start: the file that follows
|
|
402
|
+
starts at once on a ready copy instead of waiting for a restore, and only
|
|
403
|
+
when none is ready does a file restore one itself. The run's last line says
|
|
404
|
+
how its files started (`jskit test: 41 of 42 test file(s) started on a ready
|
|
405
|
+
test database, 1 restored theirs first (390ms); 46 restore(s) in the
|
|
406
|
+
background (17204ms).`). A copy the run could not restore, such as one a
|
|
407
|
+
test left a view in, fails the run that left it, naming the copy and why.
|
|
408
|
+
On MySQL and MariaDB the restore replaces only the tables
|
|
399
409
|
that differ from the snapshot, found exactly: a table's definition and its
|
|
400
410
|
`AUTO_INCREMENT` counter (`SHOW CREATE TABLE`, so a row written and deleted,
|
|
401
411
|
or a write rolled back, counts), a trigger on it, rows whose `CHECKSUM
|
|
402
|
-
TABLE` is not the snapshot's, and tables missing or added
|
|
403
|
-
|
|
404
|
-
|
|
412
|
+
TABLE` is not the snapshot's, and tables missing or added. A table whose
|
|
413
|
+
primary key is one auto-increment id, and that differs only by the rows a
|
|
414
|
+
file added and the counter they moved, keeps its table: the rows from the
|
|
415
|
+
snapshot's counter on are deleted, reading only those, and the counter is
|
|
416
|
+
set back. Each other table is replaced, made on the server, its definition
|
|
417
|
+
and then its rows copied from the snapshot database (`INSERT ... SELECT`,
|
|
418
|
+
without foreign key or unique checks, since the snapshot's rows hold every
|
|
419
|
+
key), so no row passes through Node;
|
|
405
420
|
a preparation fills up to eight tables at once, each on a connection of its
|
|
406
|
-
own, shared between the databases it restores at once, and a
|
|
407
|
-
|
|
408
|
-
run never fills on more than eight
|
|
409
|
-
being restored. No table waits in a connection pool's queue, where Knex gives
|
|
421
|
+
own, shared between the databases it restores at once, and a restore during
|
|
422
|
+
the run, a file's or the run's own, fills on its share of the eight by the
|
|
423
|
+
run's copies, spares included, so a run never fills on more than eight
|
|
424
|
+
connections, plus one for each database being restored. No table waits in a connection pool's queue, where Knex gives
|
|
410
425
|
up after its `acquireConnectionTimeout`.
|
|
411
426
|
The tables it fills are then sampled for the planner in one `ANALYZE TABLE`:
|
|
412
427
|
InnoDB keeps the statistics it took of the empty table until it samples it
|
|
413
428
|
again, and the planner would read a filled table as empty.
|
|
414
|
-
A file that wrote three tables costs three tables, not the whole schema
|
|
429
|
+
A file that wrote three tables costs three tables, not the whole schema,
|
|
430
|
+
and one that only added rows to them costs those rows. On
|
|
415
431
|
PostgreSQL the copy is made again from the snapshot database, which costs
|
|
416
432
|
less than finding the tables; the snapshot database is analyzed once when
|
|
417
433
|
it is built (`ANALYZE`), so each copy has its statistics.
|
|
@@ -419,15 +435,23 @@ the application's `knexfile.js`:
|
|
|
419
435
|
whether its test files passed, failed or were stopped (Ctrl-C, `SIGTERM`),
|
|
420
436
|
or its foreign key check failed before the first file, and so do the copies
|
|
421
437
|
a run of fewer files does not take: the next run restores each one it takes
|
|
422
|
-
instead of making it again.
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
438
|
+
instead of making it again. A run that reaches its end, stopped or not,
|
|
439
|
+
first restores the copies its last files used, so the next finds them
|
|
440
|
+
ready. On MySQL and MariaDB a run after one that did not reach its end, and
|
|
441
|
+
whose files wrote three tables, copies those three, not the schema; its
|
|
442
|
+
summary says how many tables its restores copied (`restore 412ms of 3
|
|
443
|
+
table(s)`). A run that never reached its end (killed with `SIGKILL`, stopped
|
|
444
|
+
at a command's time limit, or on a machine that went down) leaves nothing
|
|
445
|
+
the next run does not restore, a table it was copying included. Each copy
|
|
446
|
+
takes the disk space of the snapshot's rows, and there are as many as the
|
|
447
|
+
most files a run took at once and its spares; they last until the project's
|
|
448
|
+
test databases are dropped. A run holds its test databases, on the
|
|
449
|
+
database server, from before it prepares them until it ends, and so does
|
|
450
|
+
`jskit migration-history`: another run on the same `TEST_DB_NAME`, from
|
|
451
|
+
another checkout or another session of the project on that server, waits
|
|
452
|
+
for it up to a minute, then refuses, naming the first run's database
|
|
453
|
+
session (`GET_LOCK` on MySQL and MariaDB, an advisory lock on PostgreSQL).
|
|
454
|
+
A run that ends without its cleanup gives them up with its process.
|
|
431
455
|
- The snapshot holds the schema as the engine reports it and the rows the
|
|
432
456
|
migrations wrote, including the migration ledger, in a database of its own
|
|
433
457
|
on the database server, where `npm ci`, which empties `node_modules`, cannot
|
|
@@ -862,8 +862,10 @@ other than its id, takes `limit: 1`, one statement as `lock(id)` is
|
|
|
862
862
|
(`workspaces.memberships.lockByWorkspaceIdAndUserId` locks its membership so).
|
|
863
863
|
Without either, `lockWhere` locks every match in id order (on MySQL and MariaDB
|
|
864
864
|
in the order of the index it reads, below), at most 1,000 (more throw), and
|
|
865
|
-
PostgreSQL
|
|
866
|
-
match while it waited; with a `limit` it
|
|
865
|
+
on PostgreSQL it is two statements by design: it reads them once more under
|
|
866
|
+
its locks, for a row that started to match while it waited; with a `limit` it
|
|
867
|
+
stops once it holds that many. Lock rows whose ids you know with
|
|
868
|
+
`lockMany(ids, txOptions)`, one statement on PostgreSQL, MySQL and MariaDB. A
|
|
867
869
|
`limit` outside 1 to 1,000, or a `sort` on no stored field, is refused before
|
|
868
870
|
any statement.
|
|
869
871
|
|
|
@@ -494,8 +494,10 @@ Run this behavior-preserving audit over every affected screen:
|
|
|
494
494
|
4. Correct issues at the narrowest established owner. Consolidate only truly
|
|
495
495
|
repeated policy; avoid pass-through wrappers and speculative abstractions.
|
|
496
496
|
5. Run `jskit check` and `jskit check m3` on the affected files, then focused
|
|
497
|
-
tests and Playwright at
|
|
498
|
-
|
|
497
|
+
tests, and Playwright: the journeys at desktop, at phone where their steps
|
|
498
|
+
differ, and layout checks at compact, medium and expanded widths in light and
|
|
499
|
+
dark, reloading a page that decides its layout at first load
|
|
500
|
+
(`shellBackButton(page)` and `pressShellBack(page)` from
|
|
499
501
|
`@jskit-ai/shell-web/test/shellNavigation` drive Up).
|
|
500
502
|
|
|
501
503
|
Do not declare Material 3 compliance from visual resemblance alone. Report any
|
|
@@ -19,8 +19,19 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
|
|
|
19
19
|
[UI operations](/guide/framework/ui-operations); query counts belong to the
|
|
20
20
|
[data pass](/guide/framework/data-pass).
|
|
21
21
|
|
|
22
|
-
## Run the
|
|
22
|
+
## Run the whole suite first
|
|
23
23
|
|
|
24
|
+
- Start from one run of the whole suite, as `npm run verify` runs it: each of
|
|
25
|
+
its parts once, with the same commands, environment and
|
|
26
|
+
`V64_TEST_CONCURRENCY`, going on past a part that fails, each part's full
|
|
27
|
+
output and exit status kept in a file, with `jskit test`'s
|
|
28
|
+
`file-times.json`. This run is the pass's measurement before.
|
|
29
|
+
- Read that run to find what is wrong: the slowest files and parametrized
|
|
30
|
+
tests and where their time goes, tests repeated per width, locale, theme,
|
|
31
|
+
role or provider, each test's time before its first check, files or
|
|
32
|
+
packages run one after another, failures, skips with no covering run, and
|
|
33
|
+
`JSKIT_TEST_NETWORK_REFUSED` or warning lines. Fix from that run's evidence,
|
|
34
|
+
never from guesses or partial runs, and prove each fix against its numbers.
|
|
24
35
|
- `npx jskit check` reads the test scripts, test files, Playwright and Vitest
|
|
25
36
|
configs, CI workflows and the root Vite config, and names what makes a run
|
|
26
37
|
slow, fragile or unsafe, each finding with the change to make
|
|
@@ -57,6 +68,14 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
|
|
|
57
68
|
of serial runs queued one after another. Run on the host's test machine, when the host offers one, not on a
|
|
58
69
|
shared development host; a time taken while other work loads the machine is
|
|
59
70
|
reported as such and never used as a baseline.
|
|
71
|
+
- From that run, rank the time by file and by parametrized test:
|
|
72
|
+
`file-times.json` and each part's 10 slowest files and tests, with a
|
|
73
|
+
parametrized test's variants (a loop over widths, roles or providers) summed
|
|
74
|
+
from the kept output. For each top item, say where its time goes:
|
|
75
|
+
preparation, server start, page load, sign-in, or its own checks.
|
|
76
|
+
- List the tests repeated per width, locale, theme, role or provider, with the
|
|
77
|
+
minutes in their repeated parts, and take each browser test's time before its
|
|
78
|
+
first check from its trace or from a timestamp at that check.
|
|
60
79
|
- The pass's own measurement, one run of each part before the work and one
|
|
61
80
|
after, is part of the pass the person asked for. `npm run verify`, the whole
|
|
62
81
|
run, runs once, at the end, only with the person's OK.
|
|
@@ -141,6 +160,35 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
|
|
|
141
160
|
A build that writes into its own inputs is never reused (`not kept for
|
|
142
161
|
reuse, as src changed while it ran`): vue-router's generated types go to
|
|
143
162
|
`types/typed-router.d.ts`, outside `src`.
|
|
163
|
+
- Screen sizes are covered once each, not by repeating journeys. The full
|
|
164
|
+
journey runs once at desktop. At phone, it runs only the steps that differ
|
|
165
|
+
there: the drawer, the bottom navigation, a dialog that goes full screen. The
|
|
166
|
+
other widths get layout checks on the finished pages, with
|
|
167
|
+
`page.setViewportSize()` and the layout's assertions. A page that decides its
|
|
168
|
+
layout when it loads is reloaded at the new size first. A test for several
|
|
169
|
+
locales, themes, roles or providers repeats only the checks the variant
|
|
170
|
+
changes. A parametrized test's variants share the setup they don't change: a
|
|
171
|
+
`before` hook or a worker-scoped fixture, not a rebuild per variant. The
|
|
172
|
+
minutes in repeated parts, before and after, prove it.
|
|
173
|
+
- What most of a test's time goes to before its first check is paid once per
|
|
174
|
+
worker or file: `browserTestConfig()`'s `signIn` module signs each worker in
|
|
175
|
+
once, and a worker-scoped fixture holds an app or page every test of the
|
|
176
|
+
worker shares. Each test's time before its first check, before and after,
|
|
177
|
+
proves it.
|
|
178
|
+
- No test runs `npm install`, `npm ci`, `git clone` or a build of its own:
|
|
179
|
+
what it needs is made once by `--test-global-setup`. A search of the test
|
|
180
|
+
files and helpers for those commands proves it.
|
|
181
|
+
- A file that holds a large share of a part's wall time is split at its real
|
|
182
|
+
seams, as its tests run in turn: `file-times.json` shows its share, and the
|
|
183
|
+
part's wall time before and after proves the split.
|
|
184
|
+
- An app of several packages runs every package's test files in one parallel
|
|
185
|
+
pool: `npm --workspaces test` runs them package after package. The whole
|
|
186
|
+
run's wall time, near the sum of all files' times divided by the budget,
|
|
187
|
+
proves it.
|
|
188
|
+
- No script runs a suite, build or check twice: `npm run verify` and CI run
|
|
189
|
+
each part once, a preliminary check repeats nothing the run after it covers,
|
|
190
|
+
and a check that passed on the exact tree is never run again. Each part
|
|
191
|
+
starting once in the whole run's output proves it.
|
|
144
192
|
- No fixed sleep: a web-first assertion (`await expect(locator).toBeVisible()`),
|
|
145
193
|
`expect.poll()`, the event itself, or a fake clock (`mock.timers`,
|
|
146
194
|
`vi.useFakeTimers()`, `page.clock`) for the app's own delays. A poll's
|
|
@@ -151,10 +199,13 @@ The rules it applies are in [Typed features](/guide/framework/typed-features),
|
|
|
151
199
|
`// jskit-test: fixed-wait - <what the window proves, or the latency the stand-in simulates>`.
|
|
152
200
|
- A file imports what it needs at its top level, so loading counts against the
|
|
153
201
|
file, not a test's time limit.
|
|
154
|
-
- The bounds stay: `jskit test`'s 10 minutes a file and 45 a run,
|
|
202
|
+
- The bounds stay: `jskit test`'s 10 minutes a file and 45 a run, its 10
|
|
203
|
+
seconds a file's process may live on after its last test (the linger
|
|
204
|
+
bound, which names what a test left open, or says the file was busy), and
|
|
155
205
|
`browserTestConfig()`'s `actionTimeout`, `navigationTimeout` and
|
|
156
|
-
`globalTimeout`. A bound in
|
|
157
|
-
measurement of the work's real
|
|
206
|
+
`globalTimeout`. A bound in
|
|
207
|
+
`test-time-bounds.json` rises only with a measurement of the work's real
|
|
208
|
+
need; a file stopped at the linger bound closes what its tests leave open.
|
|
158
209
|
- A passing run prints what a person reads: test servers log at
|
|
159
210
|
`LOG_LEVEL=warn` unless the shell asks for more.
|
|
160
211
|
|
|
@@ -1106,8 +1106,14 @@ the last run's largest app server reached.**
|
|
|
1106
1106
|
same number for a config.
|
|
1107
1107
|
- A Node test file is named `<name>.test.js`, and a database test
|
|
1108
1108
|
`<name>.integration.test.js`: given no files, `jskit test` runs node's
|
|
1109
|
-
default pattern
|
|
1110
|
-
|
|
1109
|
+
default pattern, less the files under a `support/` or `fixtures/` folder or
|
|
1110
|
+
`src/test/` not named as tests, and fails on a `tests/` file it would leave
|
|
1111
|
+
out, such as `<name>.integration.js` or `<name>.spec.js`, and on a run that
|
|
1112
|
+
takes no test file at all, before it prepares any test database.
|
|
1113
|
+
- A helper or fixture that tests import goes under `test/support/` or
|
|
1114
|
+
`test/fixtures/`, named as no test is (not `test-*.js`, `*.test.js`,
|
|
1115
|
+
`*_test.js` or `*-test.js`): `jskit test` fails a file it takes that declares
|
|
1116
|
+
no tests, naming it.
|
|
1111
1117
|
- No script passes a fixed concurrency or worker count. `jskit check` fails a
|
|
1112
1118
|
package script that runs `node --test` directly or passes one, a Vitest
|
|
1113
1119
|
config those scripts use whose `maxWorkers` does not come from
|
|
@@ -1155,6 +1161,26 @@ the last run's largest app server reached.**
|
|
|
1155
1161
|
each test signing in. `jskit check` fails a webServer that runs the development server
|
|
1156
1162
|
(`npm run develop`, `vite`), one webServer shared by every worker, and a
|
|
1157
1163
|
config without a `globalTimeout`.
|
|
1164
|
+
- Every test of a worker reaches its server from 127.0.0.1, as a different
|
|
1165
|
+
person each time, so the servers `jskit browser tests` starts count no
|
|
1166
|
+
per-address rate limit: a route's `rateLimit`, auth's sign-in limits and the
|
|
1167
|
+
accounts hub's per-address counters. The launcher sets
|
|
1168
|
+
`JSKIT_BROWSER_TEST_SERVER=1`, and a server with it whose `APP_ENV` is not
|
|
1169
|
+
`test` refuses to start. Prove a limit with a Node test against an ordinary
|
|
1170
|
+
server.
|
|
1171
|
+
- A failed test keeps its trace with DOM snapshots. To take them, Playwright
|
|
1172
|
+
runs a script in every frame, and Chromium logs `Blocked script execution in
|
|
1173
|
+
'about:srcdoc' because the document's frame is sandboxed and the
|
|
1174
|
+
'allow-scripts' permission is not set.` for each frame sandboxed without
|
|
1175
|
+
`allow-scripts`, such as an email preview: the sandbox at work, not the app.
|
|
1176
|
+
A test that fails on console errors leaves out that line, and only that line.
|
|
1177
|
+
- JSKIT's realtime connects by WebSocket only, which `page.route()` and
|
|
1178
|
+
`context.route()` never see, so an HTTP route that aborts `/socket.io`
|
|
1179
|
+
changes nothing. A test that must run without live updates closes the socket
|
|
1180
|
+
with `context.routeWebSocket(/\/socket\.io\//, (socket) => socket.close())`
|
|
1181
|
+
before its page opens. Any HTTP route also turns the browser's cache off for
|
|
1182
|
+
its page or context, so a guard that only watches requests listens to
|
|
1183
|
+
`page.on("request")` instead.
|
|
1158
1184
|
- A file that truly cannot run beside others, because it holds a resource of
|
|
1159
1185
|
the whole machine, says why on its first line,
|
|
1160
1186
|
`// jskit-test: alone - <reason>`. `jskit test` runs it after the others,
|
|
@@ -1185,6 +1211,22 @@ the last run's largest app server reached.**
|
|
|
1185
1211
|
files still finish and report: look for what it leaves open (a server, child
|
|
1186
1212
|
process, timer or socket) or a test without a timeout. A file with its own
|
|
1187
1213
|
bound is stopped at twice that bound.
|
|
1214
|
+
- A file whose tests have all ended but whose process is still running 10
|
|
1215
|
+
seconds later (the linger bound, `lingerMs`; its `after` hooks run within
|
|
1216
|
+
it) is stopped too, and fails the run by name with what its process still
|
|
1217
|
+
holds open, from `process.getActiveResourcesInfo()` read inside it, less
|
|
1218
|
+
its own stdout and stderr, and stdin unless something reads it: `Timeout`
|
|
1219
|
+
for an interval or timer, `TCPServerWrap` for a listening server,
|
|
1220
|
+
`TCPSocketWrap` for a connection, `ProcessWrap` for a child process,
|
|
1221
|
+
`PipeWrap` for a pipe or stdin being read. A test left it running: close
|
|
1222
|
+
it in the test or an `after` hook. A file still busy past the bound with
|
|
1223
|
+
nothing open fails the run as `busy, not held open`, with how long it
|
|
1224
|
+
lived on, whether its stop met it late or it ended by itself first: finish
|
|
1225
|
+
the work it does after its last test within the tests. A file's process
|
|
1226
|
+
normally ends within moments of its last test, and the report says the
|
|
1227
|
+
longest any took against the bound. Files marked `alone` or `network` get
|
|
1228
|
+
the same bound. A suite whose measured cleanup needs longer sets `lingerMs` in
|
|
1229
|
+
`test-time-bounds.json`, with the measurement in the commit that raises it.
|
|
1188
1230
|
|
|
1189
1231
|
Why: `jskit test` and `testConcurrency()` read one budget, so every runner
|
|
1190
1232
|
uses the machine without starving the other runs on it.
|
|
@@ -1446,7 +1488,7 @@ that must run alone says so on its own first line instead.
|
|
|
1446
1488
|
| `test/playwright-isolation` | a Playwright webServer every worker shares, without `browserTestConfig()` | [Test files run in parallel](#test-files-run-in-parallel) |
|
|
1447
1489
|
| `test/playwright-global-timeout` | a Playwright config without a `globalTimeout` (or `browserTestConfig()`), or with `globalTimeout: 0` | [Test files run in parallel](#test-files-run-in-parallel) |
|
|
1448
1490
|
| `test/vitest-workers` | `--maxWorkers`, `--minWorkers` or `--no-file-parallelism` passed to Vitest, or its config without `maxWorkers: testConcurrency()` or with `fileParallelism: false` | [Test files run in parallel](#test-files-run-in-parallel) |
|
|
1449
|
-
| `test/script-files` | a script that gives `jskit test` the files node's default pattern selects anyway (`jskit test --databases tests/**/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds those files itself. A script that runs some of them (`tests/server/*.test.js`) or files the pattern leaves out (`tests/*.
|
|
1491
|
+
| `test/script-files` | a script that gives `jskit test` the files node's default pattern selects anyway (`jskit test --databases tests/**/*.test.js`), so `npm test -- <file>` runs every file and that one; drop them, as `jskit test` finds those files itself. While a `tests/` file named as a test ends in no `.test.js` (`x.integration.js`), which `jskit test` given no files refuses, the finding names it to rename first (a database test: `<name>.integration.test.js`). A script that runs some of them (`tests/server/*.test.js`) or files the pattern leaves out (`tests/bench/*.bench.js`) names them for a reason and is not reported | [Test files run in parallel](#test-files-run-in-parallel) |
|
|
1450
1492
|
|
|
1451
1493
|
The rules see shapes, not intent. Feature files, owned state beyond
|
|
1452
1494
|
registries, shutdown, loggers, shared action fields, strict inputs, the action
|
package/package.json
CHANGED
|
@@ -29,8 +29,10 @@ Read the guide's page before the work it covers:
|
|
|
29
29
|
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/material-3`
|
|
30
30
|
- tests:
|
|
31
31
|
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/typed-features#test-files-run-in-parallel`,
|
|
32
|
-
|
|
33
|
-
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/ui-operations#browser-verification
|
|
32
|
+
browser tests:
|
|
33
|
+
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/ui-operations#browser-verification`,
|
|
34
|
+
and a slow or failing suite, run whole first:
|
|
35
|
+
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/test-pass`
|
|
34
36
|
- a new capability: the pattern library; read the narrow pattern completely
|
|
35
37
|
before implementing.
|
|
36
38
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
|
-
"@jskit-ai/kernel": "0.2.
|
|
37
|
+
"@jskit-ai/kernel": "0.2.38",
|
|
38
38
|
"@jskit-ai/material-web": "0.1.17",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
@@ -44,13 +44,13 @@
|
|
|
44
44
|
"vue": "^3.5.44",
|
|
45
45
|
"vue-router": "^5.3.1",
|
|
46
46
|
"vuetify": "^4.3.0",
|
|
47
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
47
|
+
"@jskit-ai/http-runtime": "0.2.39",
|
|
48
48
|
"@fastify/fast-json-stringify-compiler": "^5.1.0",
|
|
49
49
|
"@vue/devtools-api": "^8.2.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@jskit-ai/config-eslint": "0.1.255",
|
|
53
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
53
|
+
"@jskit-ai/jskit-catalog": "0.2.127",
|
|
54
54
|
"@playwright/test": "1.61.1",
|
|
55
55
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
56
56
|
"eslint": "^10.8.0",
|
|
@@ -29,8 +29,10 @@ Read the guide's page before the work it covers:
|
|
|
29
29
|
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/material-3`
|
|
30
30
|
- tests:
|
|
31
31
|
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/typed-features#test-files-run-in-parallel`,
|
|
32
|
-
|
|
33
|
-
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/ui-operations#browser-verification
|
|
32
|
+
browser tests:
|
|
33
|
+
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/ui-operations#browser-verification`,
|
|
34
|
+
and a slow or failing suite, run whole first:
|
|
35
|
+
`https://mobily-enterprises.github.io/jskit-ai/guide/framework/test-pass`
|
|
34
36
|
- a new capability: the pattern library; read the narrow pattern completely
|
|
35
37
|
before implementing.
|
|
36
38
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@local/main": "0.1.0",
|
|
36
36
|
"@fastify/static": "^10.1.3",
|
|
37
|
-
"@jskit-ai/kernel": "0.2.
|
|
37
|
+
"@jskit-ai/kernel": "0.2.38",
|
|
38
38
|
"@jskit-ai/material-web": "0.1.17",
|
|
39
39
|
"@tanstack/vue-query": "^5.101.0",
|
|
40
40
|
"fastify": "^5.12.7",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"vue": "^3.5.44",
|
|
45
45
|
"vue-router": "^5.3.1",
|
|
46
46
|
"vuetify": "^4.3.0",
|
|
47
|
-
"@jskit-ai/http-runtime": "0.2.
|
|
48
|
-
"@jskit-ai/shell-web": "0.2.
|
|
47
|
+
"@jskit-ai/http-runtime": "0.2.39",
|
|
48
|
+
"@jskit-ai/shell-web": "0.2.63",
|
|
49
49
|
"@fastify/fast-json-stringify-compiler": "^5.1.0",
|
|
50
50
|
"@vue/devtools-api": "^8.2.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@jskit-ai/config-eslint": "0.1.255",
|
|
54
|
-
"@jskit-ai/jskit-catalog": "0.2.
|
|
54
|
+
"@jskit-ai/jskit-catalog": "0.2.127",
|
|
55
55
|
"@playwright/test": "1.61.1",
|
|
56
56
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
57
57
|
"eslint": "^10.8.0",
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import { h } from "vue";
|
|
1
|
+
<script setup>
|
|
3
2
|
import PackageShellLayout from "@jskit-ai/shell-web/client/components/ShellLayout";
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
};
|
|
4
|
+
// Keep drawerWidth, railWidth, navigationItemSpacing, and future shell props package-owned.
|
|
5
|
+
// A template, not a render function, whose root is the layout alone (no comment beside it): the page a surface gives
|
|
6
|
+
// reaches the layout as a stable slot, so the layout redraws its app bar, navigation and page area only when what they
|
|
7
|
+
// show changes. Pages give the layout their content; write the layout's own slots (top-left, top-right, menu) here, as
|
|
8
|
+
// template slots.
|
|
9
|
+
defineOptions({ name: "ShellLayout", inheritAttrs: false });
|
|
13
10
|
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<PackageShellLayout v-bind="$attrs">
|
|
14
|
+
<slot />
|
|
15
|
+
</PackageShellLayout>
|
|
16
|
+
</template>
|
|
@@ -24,9 +24,11 @@ Exports
|
|
|
24
24
|
- `APP_ENV_KEY`
|
|
25
25
|
- `APP_ENVIRONMENTS`
|
|
26
26
|
- `APP_ENVIRONMENT_META_NAME`
|
|
27
|
+
- `BROWSER_TEST_SERVER_KEY`
|
|
27
28
|
- `STAGING_REACHES_REAL_PEOPLE_KEY`
|
|
28
29
|
- `STAGING_REAL_PEOPLE_META_NAME`
|
|
29
30
|
- `appEnvironment(env)`
|
|
31
|
+
- `browserTestServer(env)`
|
|
30
32
|
- `isStagingOrProduction(env)`
|
|
31
33
|
- `pageAppEnvironment(documentObject = globalThis.document)`
|
|
32
34
|
- `pageStagingReachesRealPeople(documentObject = globalThis.document)`
|