Skip to content

Commit 44c799d

Browse files
committed
chore: upgrade japa to v3
1 parent 157f0bc commit 44c799d

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed

bin/japa_types.ts

-7
This file was deleted.

bin/test.ts

+4-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { assert } from '@japa/assert'
2-
import { pathToFileURL } from 'node:url'
32
import { fileSystem } from '@japa/file-system'
43
import { expectTypeOf } from '@japa/expect-type'
5-
import { specReporter } from '@japa/spec-reporter'
6-
import { runFailedTests } from '@japa/run-failed-tests'
7-
import { processCliArgs, configure, run } from '@japa/runner'
4+
import { processCLIArgs, configure, run } from '@japa/runner'
85

96
/*
107
|--------------------------------------------------------------------------
@@ -19,14 +16,10 @@ import { processCliArgs, configure, run } from '@japa/runner'
1916
|
2017
| Please consult japa.dev/runner-config for the config docs.
2118
*/
19+
processCLIArgs(process.argv.slice(2))
2220
configure({
23-
...processCliArgs(process.argv.slice(2)),
24-
...{
25-
files: ['tests/**/*.spec.ts'],
26-
plugins: [assert(), runFailedTests(), expectTypeOf(), fileSystem()],
27-
reporters: [specReporter()],
28-
importer: (filePath: string) => import(pathToFileURL(filePath).href),
29-
},
21+
files: ['tests/**/*.spec.ts'],
22+
plugins: [assert(), expectTypeOf(), fileSystem()],
3023
})
3124

3225
/*

package.json

+4-6
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@
6161
"devDependencies": {
6262
"@commitlint/cli": "^17.6.6",
6363
"@commitlint/config-conventional": "^17.6.6",
64-
"@japa/assert": "^1.4.1",
65-
"@japa/expect-type": "^1.0.3",
66-
"@japa/file-system": "^1.1.0",
67-
"@japa/run-failed-tests": "^1.1.1",
68-
"@japa/runner": "^2.5.1",
69-
"@japa/spec-reporter": "^1.3.3",
64+
"@japa/assert": "^2.0.0-1",
65+
"@japa/expect-type": "^2.0.0-0",
66+
"@japa/file-system": "^2.0.0-1",
67+
"@japa/runner": "^3.0.0-3",
7068
"@swc/core": "^1.3.67",
7169
"@types/node": "^20.3.3",
7270
"@types/string-similarity": "^4.0.0",

0 commit comments

Comments
 (0)