@japa/runner 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +3 -2
- package/package.json +9 -9
package/build/index.js
CHANGED
|
@@ -16,6 +16,7 @@ const getopts_1 = __importDefault(require("getopts"));
|
|
|
16
16
|
const path_1 = require("path");
|
|
17
17
|
const fast_glob_1 = __importDefault(require("fast-glob"));
|
|
18
18
|
const inclusion_1 = __importDefault(require("inclusion"));
|
|
19
|
+
const url_1 = require("url");
|
|
19
20
|
const hooks_1 = require("@poppinss/hooks");
|
|
20
21
|
const errors_printer_1 = require("@japa/errors-printer");
|
|
21
22
|
const core_1 = require("@japa/core");
|
|
@@ -234,11 +235,11 @@ async function importFiles(files) {
|
|
|
234
235
|
recentlyImportedFile = file;
|
|
235
236
|
if (runnerOptions.filters.files && runnerOptions.filters.files.length) {
|
|
236
237
|
if (isFileAllowed(file, runnerOptions.filters.files)) {
|
|
237
|
-
await runnerOptions.importer(file);
|
|
238
|
+
await runnerOptions.importer((0, url_1.pathToFileURL)(file).href);
|
|
238
239
|
}
|
|
239
240
|
}
|
|
240
241
|
else {
|
|
241
|
-
await runnerOptions.importer(file);
|
|
242
|
+
await runnerOptions.importer((0, url_1.pathToFileURL)(file).href);
|
|
242
243
|
}
|
|
243
244
|
}
|
|
244
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@japa/runner",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Runner for Japa testing framework",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"files": [
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"author": "virk,japa",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@adonisjs/mrm-preset": "^5.0.
|
|
37
|
+
"@adonisjs/mrm-preset": "^5.0.3",
|
|
38
38
|
"@adonisjs/require-ts": "^2.0.10",
|
|
39
|
-
"@types/node": "^17.0.
|
|
39
|
+
"@types/node": "^17.0.22",
|
|
40
40
|
"commitizen": "^4.2.4",
|
|
41
41
|
"cz-conventional-changelog": "^3.3.0",
|
|
42
42
|
"del-cli": "^4.0.1",
|
|
43
|
-
"eslint": "^8.
|
|
43
|
+
"eslint": "^8.11.0",
|
|
44
44
|
"eslint-config-prettier": "^8.5.0",
|
|
45
45
|
"eslint-plugin-adonis": "^2.1.0",
|
|
46
46
|
"eslint-plugin-prettier": "^4.0.0",
|
|
47
47
|
"github-label-sync": "^2.0.2",
|
|
48
48
|
"husky": "^7.0.4",
|
|
49
49
|
"japa": "^4.0.0",
|
|
50
|
-
"mrm": "^
|
|
51
|
-
"np": "^7.6.
|
|
52
|
-
"prettier": "^2.
|
|
50
|
+
"mrm": "^4.0.0",
|
|
51
|
+
"np": "^7.6.1",
|
|
52
|
+
"prettier": "^2.6.0",
|
|
53
53
|
"typescript": "^4.6.2"
|
|
54
54
|
},
|
|
55
55
|
"mrmConfig": {
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
"anyBranch": false
|
|
106
106
|
},
|
|
107
107
|
"dependencies": {
|
|
108
|
-
"@japa/core": "^6.0.
|
|
109
|
-
"@japa/errors-printer": "^1.3.
|
|
108
|
+
"@japa/core": "^6.0.2",
|
|
109
|
+
"@japa/errors-printer": "^1.3.5",
|
|
110
110
|
"@poppinss/hooks": "^6.0.2-0",
|
|
111
111
|
"fast-glob": "^3.2.11",
|
|
112
112
|
"getopts": "^2.3.0",
|