@beeblock/svelar 0.4.9 → 0.5.1
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 +24 -1
- package/dist/cli/bin.js +214 -56
- 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/cli/index.js +48 -48
- package/dist/plugins/PluginInstaller.js +1 -1
- package/dist/plugins/PluginRegistry.js +1 -1
- 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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:factory — Generate a model factory for tests
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeFactoryCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "string";
|
|
14
|
+
}[];
|
|
15
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
16
|
+
private resolveModelImport;
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* make:test — Generate a test file (unit, feature, or e2e)
|
|
3
|
+
*/
|
|
4
|
+
import { Command } from '../Command.js';
|
|
5
|
+
export declare class MakeTestCommand extends Command {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
arguments: string[];
|
|
9
|
+
flags: {
|
|
10
|
+
name: string;
|
|
11
|
+
alias: string;
|
|
12
|
+
description: string;
|
|
13
|
+
type: "boolean";
|
|
14
|
+
default: boolean;
|
|
15
|
+
}[];
|
|
16
|
+
handle(args: string[], flags: Record<string, any>): Promise<void>;
|
|
17
|
+
}
|
|
@@ -146,4 +146,9 @@ export declare class NewCommandTemplates {
|
|
|
146
146
|
static apiAdminBillingSubscriptions(): string;
|
|
147
147
|
static apiAdminBillingRefund(): string;
|
|
148
148
|
static apiAdminBillingCancel(): string;
|
|
149
|
+
static vitestConfig(): string;
|
|
150
|
+
static playwrightConfig(): string;
|
|
151
|
+
static exampleUnitTest(): string;
|
|
152
|
+
static exampleFeatureTest(): string;
|
|
153
|
+
static scaffoldUserFactory(): string;
|
|
149
154
|
}
|