@somewhere-cloud/cli 0.38.148 → 0.38.149
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/CHANGELOG.md +4 -0
- package/README.md +6 -4
- package/dist/lib/bundle.js +2365 -2162
- package/dist/lib/bundle.js.map +3 -3
- package/dist/types/lib/app-test.d.ts +7 -2
- package/dist/types/lib/test-identities.d.ts +5 -0
- package/dist/types/testing.d.ts +3 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/src/testing.ts +17 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.149
|
|
4
|
+
|
|
5
|
+
- The local browser and Playwright test fixtures wait for an app's SDK session check after navigation.
|
|
6
|
+
|
|
3
7
|
## 0.38.148
|
|
4
8
|
|
|
5
9
|
- `somewhere advisor` in a folder linked to an app, while signed in, sends the app's overview and its last deploy (after a failed deploy, the failure's file, line and message), read with your own sign-in, and says so in one line. `--no-context` sends the question alone.
|
package/README.md
CHANGED
|
@@ -339,10 +339,12 @@ await expectStatus(await user.request('/api/auth/me'), 200);
|
|
|
339
339
|
The app must mount the packaged auth handler at `/api/auth`. `createUser` creates
|
|
340
340
|
an independent throwaway user at the platform test domain; it does not use admin
|
|
341
341
|
credentials. `signIn(url, email, password)` supports an existing test user.
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
342
|
+
From the linked app folder, `session.data('notes', { operation: 'list' })` sends
|
|
343
|
+
the signed-in session, app Origin and deployed contract. For a shell probe, run
|
|
344
|
+
`somewhere test-users prepare alice`, then `somewhere data list notes --as alice`.
|
|
345
|
+
The command prints the HTTP status, outcome and rows or error as JSON.
|
|
346
|
+
`expectRefusal(response, 403, 'DATA_ACCESS_DENIED')` checks the exact status and
|
|
347
|
+
code. For an empty scoped read, also check that the owner can read the same fixture.
|
|
346
348
|
|
|
347
349
|
Browser tests can call `waitForApp(page, 'signed-in')` or `'signed-out'`; omit the
|
|
348
350
|
state for either ready state. Add `data-app-state` to your own app's confirmed auth
|