@somewhere-cloud/cli 0.38.152 → 0.38.154
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 +11 -0
- package/README.md +6 -0
- package/dist/lib/bundle.js +1171 -444
- package/dist/lib/bundle.js.map +3 -3
- package/dist/testing.js +1 -1
- package/dist/types/lib/app-test.d.ts +1 -20
- package/dist/types/lib/client.d.ts +1 -0
- package/dist/types/lib/preview-credential.d.ts +3 -1
- package/dist/types/lib/test-control.d.ts +5 -0
- package/dist/types/lib/test-identities.d.ts +9 -2
- package/dist/types/lib/test-response-capture.d.ts +24 -0
- package/dist/types/lib/test-session.d.ts +43 -0
- package/dist/types/lib/testing-app.d.ts +22 -0
- package/dist/types/lib/testing-jobs.d.ts +20 -0
- package/dist/types/testing.d.ts +10 -35
- package/npm-shrinkwrap.json +2 -2
- package/package.json +4 -3
- package/runtime/DECLARED-DATA-VENDOR.json +5 -5
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/SOURCE-LINT-VENDOR.json +2 -2
- package/runtime/declared-data.cjs +37 -19
- package/runtime/source-lint.cjs +1 -1
- package/src/testing.ts +14 -78
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.38.154
|
|
4
|
+
|
|
5
|
+
- `somewhere typecheck` recognizes `deleteWhere` in access rules for team tables.
|
|
6
|
+
|
|
7
|
+
## 0.38.153
|
|
8
|
+
|
|
9
|
+
- Write signed-in app tests with `@somewhere-cloud/cli/testing`. Generated starters include a test, and test sessions renew when the access token nears expiry.
|
|
10
|
+
- Run one part of the app smoke check with `somewhere test --only access`, `--only crawl`, or a saved check path. The report lists the parts it skipped.
|
|
11
|
+
- When deployment is still pending, the CLI checks the exact release without uploading source again.
|
|
12
|
+
- Hosted smoke checks and explicit job waits check for early results sooner.
|
|
13
|
+
|
|
3
14
|
## 0.38.152
|
|
4
15
|
|
|
5
16
|
- Run a scheduled job twice in a preview with `somewhere cron run <name> --preview --twice` and see each result and table row-count change.
|
package/README.md
CHANGED
|
@@ -329,6 +329,12 @@ MIT © Somewhere HQ, Inc.
|
|
|
329
329
|
|
|
330
330
|
## Test any Somewhere app
|
|
331
331
|
|
|
332
|
+
Use the supported `@somewhere-cloud/cli/testing` import from Node or Playwright.
|
|
333
|
+
`openTestApp()` opens the linked app, `app.users(3)` returns signed-in sessions,
|
|
334
|
+
and `app.cleanup()` removes this test's fixtures. For a saved preview use
|
|
335
|
+
`openTestApp({ preview: true })`. See [Testing your app](https://somewhere.cloud/docs/test)
|
|
336
|
+
for the complete example.
|
|
337
|
+
|
|
332
338
|
Add the CLI with `npm install --save-dev @somewhere-cloud/cli`, then import
|
|
333
339
|
`createUser`, `signIn`, `UserSession`, `expectRefusal`, and `waitForApp` from
|
|
334
340
|
`@somewhere-cloud/cli/testing` in Node tests. No starter is required.
|