slicetest 0.2.0 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slicetest",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Framework-agnostic slice tests: drive a real app process over HTTP with a real Postgres and stubbed outbound APIs, checked against OpenAPI contracts.",
5
5
  "keywords": [
6
6
  "testing",
@@ -8,6 +8,7 @@
8
8
  "slice-test",
9
9
  "api-testing",
10
10
  "postgres",
11
+ "mysql",
11
12
  "stub",
12
13
  "mock-server",
13
14
  "vitest",
@@ -58,7 +59,9 @@
58
59
  "prepublishOnly": "npm run typecheck && npm run build"
59
60
  },
60
61
  "peerDependencies": {
61
- "vitest": ">=5"
62
+ "vitest": ">=5",
63
+ "mysql2": ">=3",
64
+ "@testcontainers/mysql": ">=11"
62
65
  },
63
66
  "dependencies": {
64
67
  "@testcontainers/postgresql": "^12.2.0",
@@ -69,12 +72,22 @@
69
72
  "yaml": "^2.9.1"
70
73
  },
71
74
  "devDependencies": {
75
+ "@testcontainers/mysql": "^12.2.0",
72
76
  "@types/node": "^26.6.3",
73
77
  "@types/pg": "^8.23.1",
78
+ "mysql2": "^3.24.5",
74
79
  "typescript": "^7.0.2",
75
80
  "vitest": "^5.0.2"
76
81
  },
77
82
  "bin": {
78
83
  "slicetest": "dist/cli.js"
84
+ },
85
+ "peerDependenciesMeta": {
86
+ "mysql2": {
87
+ "optional": true
88
+ },
89
+ "@testcontainers/mysql": {
90
+ "optional": true
91
+ }
79
92
  }
80
93
  }
@@ -501,6 +501,30 @@
501
501
  "description": "Label shown when this step fails"
502
502
  }
503
503
  }
504
+ },
505
+ {
506
+ "type": "object",
507
+ "required": [
508
+ "snapshot"
509
+ ],
510
+ "additionalProperties": false,
511
+ "properties": {
512
+ "snapshot": {
513
+ "const": true,
514
+ "description": "Compare this scenario's trace so far (requests to the app, calls to stubs, database changes; dates and UUIDs masked) with its stored snapshot. Update with vitest -u"
515
+ },
516
+ "mask": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ },
521
+ "description": "Keys whose values are masked too, e.g. [token]"
522
+ },
523
+ "name": {
524
+ "type": "string",
525
+ "description": "Label shown when this step fails"
526
+ }
527
+ }
504
528
  }
505
529
  ]
506
530
  },