@stacksjs/defaults 0.74.36 → 0.74.37
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.
|
@@ -42,22 +42,24 @@ await truncateMysql() // for MySQL
|
|
|
42
42
|
|
|
43
43
|
## DynamoDB Testing
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
Point `AWS_ENDPOINT_URL` at a DynamoDB you started yourself - DynamoDB Local, or
|
|
46
|
+
a real region. The framework cannot start one for you; a `launchServer()` that
|
|
47
|
+
claimed to did not work and has been removed.
|
|
47
48
|
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
```typescript
|
|
50
|
+
import { createStacksTable, deleteStacksTable } from '@stacksjs/testing/dynamodb'
|
|
50
51
|
|
|
51
52
|
// Create test table
|
|
52
53
|
await createStacksTable()
|
|
53
54
|
|
|
54
55
|
// Cleanup
|
|
55
56
|
await deleteStacksTable()
|
|
56
|
-
|
|
57
|
-
// Utility
|
|
58
|
-
await delay(1000) // wait for async operations
|
|
59
57
|
```
|
|
60
58
|
|
|
59
|
+
These are table-level only. There are no item assertions (`assertDynamoHas` and
|
|
60
|
+
friends have never existed): the `DynamoDBClient` in `@stacksjs/ts-cloud` covers
|
|
61
|
+
`createTable` / `deleteTable` / `describeTable` and no data-plane operations.
|
|
62
|
+
|
|
61
63
|
## Writing Tests
|
|
62
64
|
|
|
63
65
|
```typescript
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.74.
|
|
5
|
+
"version": "0.74.37",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@iconify-json/f7": "^1.2.2",
|
|
57
57
|
"@iconify-json/hugeicons": "^1.2.27",
|
|
58
|
-
"@stacksjs/mobile": "^0.74.
|
|
58
|
+
"@stacksjs/mobile": "^0.74.37",
|
|
59
59
|
"@stacksjs/sanitizer": "^0.2.113",
|
|
60
60
|
"ts-qr-codes": "^0.1.8"
|
|
61
61
|
}
|