Skip to content

Commit

Permalink
fix(kernel): update test commands loader
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Sep 17, 2022
1 parent c6aa311 commit a87401f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 153 deletions.
11 changes: 5 additions & 6 deletions app/Console/Kernel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { CoreLoader } from '@athenna/core'
import { TestLoader } from '@athenna/test'
import { Path, Folder } from '@secjs/utils'
import { TestCommandsLoader } from '@athenna/test'
import { ArtisanLoader, ConsoleKernel } from '@athenna/artisan'

export class Kernel extends ConsoleKernel {
Expand All @@ -10,7 +11,8 @@ export class Kernel extends ConsoleKernel {
*/
get commands() {
const internalCommands = [
...TestCommandsLoader.loadCommands(),
...CoreLoader.loadCommands(),
...TestLoader.loadCommands(),
...ArtisanLoader.loadCommands(),
]

Expand All @@ -32,9 +34,6 @@ export class Kernel extends ConsoleKernel {
* @return {any[]}
*/
get templates() {
return [
...TestCommandsLoader.loadTemplates(),
...ArtisanLoader.loadTemplates(),
]
return [...TestLoader.loadTemplates(), ...ArtisanLoader.loadTemplates()]
}
}
161 changes: 16 additions & 145 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@
"dependencies": {
"@athenna/artisan": "1.5.0",
"@athenna/config": "1.1.4",
"@athenna/core": "1.8.9",
"@athenna/core": "1.9.1",
"@athenna/ioc": "1.2.4",
"@athenna/logger": "1.3.1",
"@athenna/test": "1.1.9",
"@athenna/test": "1.2.4",
"@secjs/utils": "1.9.9",
"source-map-support": "0.5.21"
},
Expand Down

0 comments on commit a87401f

Please sign in to comment.