@japa/runner 2.0.4 → 2.0.5

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.
Files changed (2) hide show
  1. package/build/index.js +3 -3
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -148,7 +148,7 @@ function configure(options) {
148
148
  filters: {},
149
149
  setup: [],
150
150
  teardown: [],
151
- importer: (filePath) => (0, inclusion_1.default)(filePath),
151
+ importer: (filePath) => (0, inclusion_1.default)((0, url_1.pathToFileURL)(filePath).href),
152
152
  refiner: new core_1.Refiner({}),
153
153
  forceExit: false,
154
154
  configureSuite: () => { },
@@ -235,11 +235,11 @@ async function importFiles(files) {
235
235
  recentlyImportedFile = file;
236
236
  if (runnerOptions.filters.files && runnerOptions.filters.files.length) {
237
237
  if (isFileAllowed(file, runnerOptions.filters.files)) {
238
- await runnerOptions.importer((0, url_1.pathToFileURL)(file).href);
238
+ await runnerOptions.importer(file);
239
239
  }
240
240
  }
241
241
  else {
242
- await runnerOptions.importer((0, url_1.pathToFileURL)(file).href);
242
+ await runnerOptions.importer(file);
243
243
  }
244
244
  }
245
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@japa/runner",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Runner for Japa testing framework",
5
5
  "main": "build/index.js",
6
6
  "files": [