From 89b1bce56d8f7d080e9223080597cff37d3bd625 Mon Sep 17 00:00:00 2001 From: Livia Medeiros Date: Sun, 13 Aug 2023 10:30:00 +0900 Subject: [PATCH] test: document `fixtures.fileURL()` PR-URL: https://github.com/nodejs/node/pull/49083 Reviewed-By: Antoine du Hamel Reviewed-By: Joyee Cheung Reviewed-By: Luigi Pinca --- test/common/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/common/README.md b/test/common/README.md index 515e92325edb4d..d4279e00af68b5 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -679,6 +679,12 @@ The absolute path to the `test/fixtures/` directory. Returns the result of `path.join(fixtures.fixturesDir, ...args)`. +### `fixtures.fileURL(...args)` + +* `...args` [\][] + +Returns the result of `url.pathToFileURL(fixtures.path(...args))`. + ### `fixtures.readSync(args[, enc])` * `args` [\][] | [\][]