|
| 1 | +import { defineConfig } from '@adonisjs/core/app' |
| 2 | + |
| 3 | +export default defineConfig({ |
| 4 | + /* |
| 5 | + |-------------------------------------------------------------------------- |
| 6 | + | Commands |
| 7 | + |-------------------------------------------------------------------------- |
| 8 | + | |
| 9 | + | List of ace commands to register from packages. The application commands |
| 10 | + | will be scanned automatically from the "./commands" directory. |
| 11 | + | |
| 12 | + */ |
| 13 | + commands: [() => import('@adonisjs/core/commands')], |
| 14 | + |
| 15 | + /* |
| 16 | + |-------------------------------------------------------------------------- |
| 17 | + | Service providers |
| 18 | + |-------------------------------------------------------------------------- |
| 19 | + | |
| 20 | + | List of service providers to import and register when booting the |
| 21 | + | application |
| 22 | + | |
| 23 | + */ |
| 24 | + providers: [ |
| 25 | + () => import('@adonisjs/core/providers/app_provider'), |
| 26 | + () => import('@adonisjs/core/providers/hash_provider'), |
| 27 | + { |
| 28 | + file: () => import('@adonisjs/core/providers/repl_provider'), |
| 29 | + environment: ['repl', 'test'], |
| 30 | + }, |
| 31 | + ], |
| 32 | + |
| 33 | + /* |
| 34 | + |-------------------------------------------------------------------------- |
| 35 | + | Preloads |
| 36 | + |-------------------------------------------------------------------------- |
| 37 | + | |
| 38 | + | List of modules to import before starting the application. |
| 39 | + | |
| 40 | + */ |
| 41 | + preloads: [() => import('#start/routes'), () => import('#start/kernel')], |
| 42 | + |
| 43 | + /* |
| 44 | + |-------------------------------------------------------------------------- |
| 45 | + | Tests |
| 46 | + |-------------------------------------------------------------------------- |
| 47 | + | |
| 48 | + | List of test suites to organize tests by their type. Feel free to remove |
| 49 | + | and add additional suites. |
| 50 | + | |
| 51 | + */ |
| 52 | + tests: { |
| 53 | + suites: [ |
| 54 | + { |
| 55 | + files: ['tests/unit/**/*.spec(.ts|.js)'], |
| 56 | + name: 'unit', |
| 57 | + timeout: 2000, |
| 58 | + }, |
| 59 | + { |
| 60 | + files: ['tests/functional/**/*.spec(.ts|.js)'], |
| 61 | + name: 'functional', |
| 62 | + timeout: 30000, |
| 63 | + }, |
| 64 | + ], |
| 65 | + forceExit: false, |
| 66 | + }, |
| 67 | +}) |
0 commit comments