@beeblock/svelar 0.4.8 → 0.5.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/README.md +4 -1
- package/dist/cli/bin.js +225 -76
- package/dist/cli/commands/MakeFactoryCommand.d.ts +17 -0
- package/dist/cli/commands/MakeTestCommand.d.ts +17 -0
- package/dist/cli/commands/NewCommandTemplates.d.ts +5 -0
- package/dist/testing/Factory.d.ts +37 -0
- package/dist/testing/assertions.d.ts +19 -0
- package/dist/testing/auth.d.ts +15 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.js +4 -0
- package/dist/testing/request.d.ts +20 -0
- package/dist/testing/setup.d.ts +35 -0
- package/package.json +10 -2
package/README.md
CHANGED
|
@@ -72,6 +72,7 @@ See the [Getting Started guide](https://svelar.dev/docs/getting-started) for a c
|
|
|
72
72
|
| **Dashboard** | `svelar/dashboard` | Admin dashboard with job/scheduler monitoring and log viewer |
|
|
73
73
|
| **Search** | `svelar/search` | Meilisearch integration with auto-syncing `Searchable` mixin |
|
|
74
74
|
| **Stripe** | `svelar/stripe` | Billing, subscriptions, checkout, invoices, webhook handling |
|
|
75
|
+
| **Testing** | `svelar/testing` | Factory, `useSvelarTest()`, `refreshDatabase()`, `actingAs()`, database assertions |
|
|
75
76
|
|
|
76
77
|
## CLI
|
|
77
78
|
|
|
@@ -82,13 +83,15 @@ npx svelar make:model Post -m -c # model + migration + controller
|
|
|
82
83
|
npx svelar make:service PaymentService # service class
|
|
83
84
|
npx svelar make:job SendEmail # queue job
|
|
84
85
|
npx svelar make:task CleanupTokens # scheduled task
|
|
86
|
+
npx svelar make:test Auth --feature # feature test
|
|
87
|
+
npx svelar make:factory User --model User # model factory
|
|
85
88
|
npx svelar migrate # run migrations
|
|
86
89
|
npx svelar schedule:run # start the scheduler
|
|
87
90
|
npx svelar queue:work # process queue jobs
|
|
88
91
|
npx svelar tinker # interactive REPL
|
|
89
92
|
```
|
|
90
93
|
|
|
91
|
-
|
|
94
|
+
41 code generation commands available. Run `npx svelar` to see all commands.
|
|
92
95
|
|
|
93
96
|
## Database Support
|
|
94
97
|
|