1
1
import { assert } from '@japa/assert'
2
+ import { fileURLToPath } from 'node:url'
2
3
import { fileSystem } from '@japa/file-system'
3
- import { specReporter } from '@japa/spec-reporter'
4
- import { runFailedTests } from '@japa/run-failed-tests'
5
- import { fileURLToPath , pathToFileURL } from 'node:url'
6
- import { processCliArgs , configure , run } from '@japa/runner'
4
+ import { processCLIArgs , configure , run } from '@japa/runner'
7
5
8
6
const TEST_TMP_DIR_PATH = fileURLToPath ( new URL ( '../tmp' , import . meta. url ) )
9
7
@@ -20,15 +18,11 @@ const TEST_TMP_DIR_PATH = fileURLToPath(new URL('../tmp', import.meta.url))
20
18
|
21
19
| Please consult japa.dev/runner-config for the config docs.
22
20
*/
21
+ processCLIArgs ( process . argv . slice ( 2 ) )
23
22
configure ( {
24
- ...processCliArgs ( process . argv . slice ( 2 ) ) ,
25
- ...{
26
- files : [ 'tests/**/*.spec.ts' ] ,
27
- plugins : [ assert ( ) , runFailedTests ( ) , fileSystem ( { basePath : TEST_TMP_DIR_PATH } ) ] ,
28
- reporters : [ specReporter ( ) ] ,
29
- timeout : 5 * 1000 ,
30
- importer : ( filePath : string ) => import ( pathToFileURL ( filePath ) . href ) ,
31
- } ,
23
+ files : [ 'tests/**/*.spec.ts' ] ,
24
+ plugins : [ assert ( ) , fileSystem ( { basePath : TEST_TMP_DIR_PATH } ) ] ,
25
+ timeout : 5 * 1000 ,
32
26
} )
33
27
34
28
/*
0 commit comments