generated from AthennaIO/Template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(http): return http when bootLogs is false
- Loading branch information
Showing
14 changed files
with
49 additions
and
68 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@athenna/core", | ||
"version": "4.10.1", | ||
"version": "4.10.2", | ||
"description": "The plug and play Node.js framework.", | ||
"license": "MIT", | ||
"author": "João Lenon <[email protected]>", | ||
|
@@ -57,8 +57,8 @@ | |
"./commands/ServeCommand": "./src/commands/ServeCommand.js", | ||
"./commands/TestCommand": "./src/commands/TestCommand.js", | ||
"./commands/BuildCommand": "./src/commands/BuildCommand.js", | ||
"./testing/BaseCliTest": "./src/testing/BaseCliTest.js", | ||
"./testing/BaseRestTest": "./src/testing/BaseRestTest.js" | ||
"./testing/BaseHttpTest": "./src/testing/BaseHttpTest.js", | ||
"./testing/BaseConsoleTest": "./src/testing/BaseConsoleTest.js" | ||
}, | ||
"imports": { | ||
"#bin/*": "./bin/*.js", | ||
|
@@ -106,8 +106,8 @@ | |
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
"src/testing/BaseCliTest.ts", | ||
"src/testing/BaseRestTest.ts", | ||
"src/testing/BaseConsoleTest.ts", | ||
"src/testing/BaseHttpTest.ts", | ||
"src/repl/helpers/Command.ts", | ||
"src/types/*" | ||
], | ||
|
@@ -204,8 +204,8 @@ | |
"provider": "./templates/provider.edge", | ||
"service": "./templates/service.edge", | ||
"test": "./templates/test.edge", | ||
"test-cli": "./templates/test-cli.edge", | ||
"test-rest": "./templates/test-rest.edge", | ||
"test-console": "./templates/test-console.edge", | ||
"test-http": "./templates/test-http.edge", | ||
"test-fn": "./templates/test-fn.edge", | ||
"command": "node_modules/@athenna/artisan/templates/command.edge", | ||
"controller": "node_modules/@athenna/http/templates/controller.edge", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Test, type Context } from '@athenna/test' | ||
import { BaseConsoleTest } from '@athenna/core/testing/BaseConsoleTest' | ||
|
||
export default class {{ namePascal }} extends BaseConsoleTest { | ||
@Test() | ||
public async shouldBeAbleToExecuteConsoleCommands({ command }: Context) { | ||
const output = await command.run('greet') | ||
|
||
output.assertSucceeded() | ||
output.assertLogged('Hello World!') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Test, type Context } from '@athenna/test' | ||
import { BaseHttpTest } from '@athenna/core/testing/BaseHttpTest' | ||
|
||
export default class {{ namePascal }} extends BaseHttpTest { | ||
@Test() | ||
public async shouldBeAbleToExecuteHttpRequests({ request }: Context) { | ||
const response = await request.get('/') | ||
|
||
response.assertStatusCode(200) | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.