@stratal/testing 0.0.5 → 0.0.6
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing-module-builder.d.ts","sourceRoot":"","sources":["../../src/core/testing-module-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,KAAK,UAAU,EAChB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,cAAc,EAAuB,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInF,OAAO,EAAE,uBAAuB,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,qCAAqC;IACrC,GAAG,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;IACzB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,oBAAoB;IAGnB,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,SAAS,CAAuC;gBAEpC,MAAM,EAAE,mBAAmB;IAE/C;;;;;;;OAOG;IACH,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC;IAIzE;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,EAAE,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI;IAKjE;;;;;OAKG;IACH,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI;IAKvC;;;;;;;OAOG;IACG,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"testing-module-builder.d.ts","sourceRoot":"","sources":["../../src/core/testing-module-builder.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EAEjB,KAAK,UAAU,EAChB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,cAAc,EAAuB,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAInF,OAAO,EAAE,uBAAuB,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,mBAAoB,SAAQ,aAAa;IACxD,qCAAqC;IACrC,GAAG,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;IACzB,qEAAqE;IACrE,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CACvC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,qBAAa,oBAAoB;IAGnB,OAAO,CAAC,MAAM;IAF1B,OAAO,CAAC,SAAS,CAAuC;gBAEpC,MAAM,EAAE,mBAAmB;IAE/C;;;;;;;OAOG;IACH,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC;IAIzE;;;;OAIG;IACH,mBAAmB,CAAC,CAAC,EAAE,QAAQ,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI;IAKjE;;;;;OAKG;IACH,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,GAAG,IAAI;IAKvC;;;;;;;OAOG;IACG,OAAO,IAAI,OAAO,CAAC,aAAa,CAAC;IAqEvC;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAK7B"}
|
|
@@ -110,12 +110,14 @@ export class TestingModuleBuilder {
|
|
|
110
110
|
jobs: this.config.jobs,
|
|
111
111
|
});
|
|
112
112
|
// 4. Create Application
|
|
113
|
-
const app = new Application(
|
|
113
|
+
const app = new Application({
|
|
114
114
|
module: rootModule,
|
|
115
115
|
logging: {
|
|
116
116
|
level: this.config.logging?.level ?? LogLevel.ERROR,
|
|
117
117
|
formatter: this.config.logging?.formatter ?? 'pretty',
|
|
118
118
|
},
|
|
119
|
+
env,
|
|
120
|
+
ctx,
|
|
119
121
|
});
|
|
120
122
|
// 7. Initialize application - ModuleRegistry handles all module registrations
|
|
121
123
|
await app.initialize();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing-module-builder.js","sourceRoot":"","sources":["../../src/core/testing-module-builder.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,WAAW,GAIZ,MAAM,SAAS,CAAA;AAEhB,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAkB,MAAM,EAA8B,MAAM,gBAAgB,CAAA;AACnF,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,uBAAuB,EAA+B,MAAM,YAAY,CAAA;AACjF,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAuBhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,OAAO,oBAAoB;IAGX;IAFZ,SAAS,GAAqC,EAAE,CAAA;IAExD,YAAoB,MAA2B;QAA3B,WAAM,GAAN,MAAM,CAAqB;IAAI,CAAC;IAEpD;;;;;;;OAOG;IACH,gBAAgB,CAAI,KAAwB;QAC1C,OAAO,IAAI,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACjD,CAAC;IAED;;;;OAIG;IACH,m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,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAA;oBACpE,MAAK;gBACP,KAAK,OAAO;oBACV,GAAG,CAAC,SAAS,CAAC,iBAAiB,CAC7B,QAAQ,CAAC,KAAK,EACd,QAAQ,CAAC,cAA6B,CACvC,CAAA;oBACD,MAAK;gBACP,KAAK,SAAS;oBACZ,GAAG,CAAC,SAAS,CAAC,eAAe,CAC3B,QAAQ,CAAC,KAAK,EACd,QAAQ,CAAC,cAA0C,CACpD,CAAA;oBACD,MAAK;gBACP,KAAK,UAAU;oBACb,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAC5B,QAAQ,CAAC,KAAK,EACd,QAAQ,CAAC,cAAwC,CAClD,CAAA;oBACD,MAAK;YACT,CAAC;QACH,CAAC;QAED,OAAO,IAAI,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IACpC,CAAC;IAED;;OAEG;IACK,oBAAoB,CAAC,OAAsB;QAEjD,IAAM,cAAc,GAApB,MAAM,cAAc;SAAI,CAAA;QAAlB,cAAc;YADnB,MAAM,CAAC,OAAO,CAAC;WACV,cAAc,CAAI;QACxB,OAAO,cAAc,CAAA;IACvB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratal/testing",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "Testing utilities and mocks for Stratal framework applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"vitest"
|
|
23
23
|
],
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
25
|
+
"node": ">=22.0.0"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@golevelup/ts-vitest": "^2.2.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@stratal/framework": "^0.0.
|
|
63
|
+
"@stratal/framework": "^0.0.6",
|
|
64
64
|
"better-auth": "^1.4.9",
|
|
65
|
-
"stratal": "^0.0.
|
|
65
|
+
"stratal": "^0.0.6",
|
|
66
66
|
"vitest": "^3.2.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@cloudflare/vitest-pool-workers": "^0.12.18",
|
|
78
|
-
"@cloudflare/workers-types": "4.
|
|
79
|
-
"@stratal/framework": "
|
|
78
|
+
"@cloudflare/workers-types": "4.20260306.1",
|
|
79
|
+
"@stratal/framework": "workspace:*",
|
|
80
80
|
"@types/node": "^25.3.2",
|
|
81
81
|
"better-auth": "^1.5.0",
|
|
82
|
-
"stratal": "
|
|
82
|
+
"stratal": "workspace:*",
|
|
83
83
|
"typescript": "^5.9.3",
|
|
84
84
|
"vitest": "~3.2.0"
|
|
85
85
|
}
|
|
86
|
-
}
|
|
86
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# @stratal/testing
|
|
2
|
-
|
|
3
|
-
## 0.0.5
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#66](https://github.com/strataljs/stratal/pull/66) [`c8ea964`](https://github.com/strataljs/stratal/commit/c8ea964e272b09ebc6619843e77d2b51178f9423) Thanks [@adesege](https://github.com/adesege)! - Add `actingAs` auth test helper, `TestHttpRequest` builder, ZenStack language mock, and enhanced `TestingModule` utilities with new exports and types.
|
|
8
|
-
|
|
9
|
-
- Updated dependencies [[`c8ea964`](https://github.com/strataljs/stratal/commit/c8ea964e272b09ebc6619843e77d2b51178f9423), [`c8ea964`](https://github.com/strataljs/stratal/commit/c8ea964e272b09ebc6619843e77d2b51178f9423)]:
|
|
10
|
-
- stratal@0.0.5
|
|
11
|
-
- @stratal/framework@0.0.5
|
|
12
|
-
|
|
13
|
-
## 0.0.4
|
|
14
|
-
|
|
15
|
-
### Patch Changes
|
|
16
|
-
|
|
17
|
-
- **Build cleanup** — Removed redundant polyfills export and cleaned up the build configuration.
|
|
18
|
-
- **Relaxed vitest version** — Loosened the vitest peer dependency version constraint.
|
|
19
|
-
|
|
20
|
-
- Updated dependencies []:
|
|
21
|
-
- stratal@0.0.4
|
|
22
|
-
|
|
23
|
-
## 0.0.3
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- - **Build cleanup** — Removed redundant polyfills export and cleaned up the build configuration.
|
|
28
|
-
- **Relaxed vitest version** — Loosened the vitest peer dependency version constraint.
|
|
29
|
-
- Updated dependencies []:
|
|
30
|
-
- stratal@0.0.3
|
|
31
|
-
|
|
32
|
-
## 0.0.2
|
|
33
|
-
|
|
34
|
-
### Patch Changes
|
|
35
|
-
|
|
36
|
-
#### `stratal` (core)
|
|
37
|
-
|
|
38
|
-
##### Breaking Changes
|
|
39
|
-
|
|
40
|
-
- **`withRoot`/`withRootAsync` renamed to `forRoot`/`forRootAsync`** — All dynamic module configuration methods have been renamed for consistency. Update every `SomeModule.withRoot(...)` call to `SomeModule.forRoot(...)` and `SomeModule.withRootAsync(...)` to `SomeModule.forRootAsync(...)`. ([`152913a`](https://github.com/strataljs/stratal/commit/152913a))
|
|
41
|
-
|
|
42
|
-
- **Barrel export removed — use sub-path imports** — The top-level `stratal` barrel export has been removed. Consumers must now import from sub-paths (`stratal/di`, `stratal/router`, `stratal/cache`, `stratal/validation`, etc.). ([`af073d8`](https://github.com/strataljs/stratal/commit/af073d8))
|
|
43
|
-
|
|
44
|
-
##### Features
|
|
45
|
-
|
|
46
|
-
- **DOM polyfill for Cloudflare Workers** — Added a DOM polyfill to support AWS SDK v3 XML parsing in Cloudflare Workers environments. ([`f3b2cb9`](https://github.com/strataljs/stratal/commit/f3b2cb9))
|
|
47
|
-
|
|
48
|
-
- **Benchmark suite** — Added benchmark functionality for measuring framework performa30438`](https://github.com/strataljs/stratal/commit/7230438))
|
|
49
|
-
|
|
50
|
-
##### Security
|
|
51
|
-
|
|
52
|
-
- **ConfigService blocks prototype pollution** — `ConfigService` now rejects dangerous keys (`__proto__`, `constructor`, `prototype`) to prevent prototype pollution attacks. ([`567139c`](https://github.com/strataljs/stratal/commit/567139c), [`e64b4e7`](https://github.com/strataljs/stratal/commit/e64b4e7))
|
|
53
|
-
|
|
54
|
-
##### Bug Fixes
|
|
55
|
-
|
|
56
|
-
- **`reflect-metadata` import moved to vitest setup** — Removed unused `reflect-metadata` imports from example files and centralized the import in `vitest.setup.ts`. ([`f3b2cb9`](https://github.com/strataljs/stratal/commit/f3b2cb9))
|
|
57
|
-
|
|
58
|
-
---
|
|
59
|
-
|
|
60
|
-
#### `@stratal/testing`
|
|
61
|
-
|
|
62
|
-
##### Breaking Changes
|
|
63
|
-
|
|
64
|
-
- **Import paths updated** — Import paths updated to match the new core sub-path exports (e.g. `stratal/di` instead of the barrel `stratal`). ([`af073d8`](https://github.com/strataljs/stratal/commit/af073d8))
|
|
65
|
-
|
|
66
|
-
- Updated dependencies []:
|
|
67
|
-
- @stratal/testing@0.0.2
|
|
68
|
-
|
|
69
|
-
## 0.0.1
|
|
70
|
-
|
|
71
|
-
### Patch Changes
|
|
72
|
-
|
|
73
|
-
- Initial release of the Stratal framework — a modular Cloudflare Workers framework built on Hono and tsyringe.
|
|
74
|
-
|
|
75
|
-
**Core Infrastructure**
|
|
76
|
-
|
|
77
|
-
- NestJS-style module system with `@Module()` decorator, dynamic modules (`forRoot`, `forRootAsync`), and lifecycle hooks (`OnInitialize`, `OnShutdown`)
|
|
78
|
-
- Two-tier dependency injection container (global singletons + request-scoped) powered by tsyringe with conditional registration and service decoration
|
|
79
|
-
- `StratalWorker` entry point extending Cloudflare's `WorkerEntrypoint` for HTTP fetch, queue batches, and scheduled cron triggers
|
|
80
|
-
|
|
81
|
-
**Routing & API**
|
|
82
|
-
|
|
83
|
-
- Hono-based routing with `@Controller()` and `@Route()` decorators, automatic controller discovery, and route guards via `@UseGuards()`
|
|
84
|
-
- OpenAPI schema generation with `@hono/zod-openapi` and Scalar API reference integration
|
|
85
|
-
- NestJS-like middleware configuration with route-specific application and exclusion
|
|
86
|
-
|
|
87
|
-
**Background Processing**
|
|
88
|
-
|
|
89
|
-
- Queue consumerfor Cloudflare Queues with `@Consumer()` and `@QueueJob()` decorators and batch processing
|
|
90
|
-
- Cron job scheduling via `CronManager` integrated with Cloudflare's scheduled events
|
|
91
|
-
|
|
92
|
-
**Services & Integrations**
|
|
93
|
-
|
|
94
|
-
- Email module with pluggable providers (Nodemailer, Resend) and queue-based sending
|
|
95
|
-
- Storage module with AWS S3 / Cloudflare R2 support, multipart uploads, presigned URLs, and TUS resumable uploads
|
|
96
|
-
- Internationalization (i18n) module with locale detection, message compilation, and request-scoped translations
|
|
97
|
-
- Cache module with pluggable providers and Cloudflare KV integration
|
|
98
|
-
- Configuration module with `registerAs()` namespaces and Zod-based validation
|
|
99
|
-
- Structured logging with JSON and pretty formatters
|
|
100
|
-
|
|
101
|
-
**Developer Experience**
|
|
102
|
-
|
|
103
|
-
- Zod-powered request/response validation with type inference
|
|
104
|
-
- Custom `ApplicationError` class with HTTP status mapping
|
|
105
|
-
- ESM-only with full TypeScript decorator support (`emitDecoratorMetadata`)
|
|
106
|
-
- Sub-path exports for tree-shakeable imports (`stratal/di`, `stratal/router`, `stratal/cache`, etc.)
|
|
107
|
-
|
|
108
|
-
- `TestingModule` and `TestingModuleBuilder` for bootstrapping isolated module environments in tests
|
|
109
|
-
- `TestHttpClient` with request builder and response wrapper for integration testing
|
|
110
|
-
- `FetchMock` for mocking HTTP fetch calls
|
|
111
|
-
- `FakeStorageService` for in-memory storage testing without S3/R2
|
|
112
|
-
- `ProviderOverrideBuilder` for replacing providers with test doubles
|
|
113
|
-
- Nodemailer mock for email testing
|
|
114
|
-
- Test environment utilities via `getTestEnv()`
|
|
115
|
-
|
|
116
|
-
- Updated dependencies []:
|
|
117
|
-
- stratal@0.0.1
|