diff --git a/package.json b/package.json index fbe141e..7307e6f 100644 --- a/package.json +++ b/package.json @@ -213,6 +213,7 @@ "test": "./templates/test.edge", "test-console": "./templates/test-console.edge", "test-http": "./templates/test-http.edge", + "test-cron": "./templates/test-cron.edge", "test-fn": "./templates/test-fn.edge", "command": "node_modules/@athenna/artisan/templates/command.edge", "controller": "node_modules/@athenna/http/templates/controller.edge", diff --git a/tests/unit/commands/MakeTestCommandTest.ts b/tests/unit/commands/MakeTestCommandTest.ts index 82a6ad6..75d0dd7 100644 --- a/tests/unit/commands/MakeTestCommandTest.ts +++ b/tests/unit/commands/MakeTestCommandTest.ts @@ -60,6 +60,8 @@ export default class MakeTestCommandTest extends BaseCommandTest { public async shouldBeAbleToCreateATestFileUsingCronTemplate({ assert, command }: Context) { const output = await command.run('make:test TestTest --cron') + console.log(output.output) + output.assertSucceeded() output.assertLogged('[ MAKING TEST ]') output.assertLogged('[ success ] Test "TestTest" successfully created.')