@rstest/core 0.7.8 → 0.7.9
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/LICENSE.md +294 -0
- package/dist/0~130.js +2 -2
- package/dist/0~1472.js +48 -0
- package/dist/0~1981.js +3 -0
- package/dist/0~2173.js +25 -10
- package/dist/0~2255.js +2 -2
- package/dist/0~3062.js +0 -5
- package/dist/0~3919.js +1 -1
- package/dist/0~4403.js +6 -5
- package/dist/0~4809.js +1 -1
- package/dist/0~5835.js +2 -2
- package/dist/0~62.js +1 -1
- package/dist/0~6588.js +3 -3
- package/dist/0~6923.js +2 -2
- package/dist/0~7583.js +9 -8
- package/dist/0~7882.js +1144 -0
- package/dist/0~8426.js +1 -2
- package/dist/0~89.js +24 -21
- package/dist/0~9348.js +953 -0
- package/dist/0~9634.js +58 -10
- package/dist/1157.js +12 -117
- package/dist/{7913.js → 1294.js} +51 -1745
- package/dist/2672.js +647 -0
- package/dist/3278.js +3 -450
- package/dist/4484.js +38 -0
- package/dist/487.js +1739 -0
- package/dist/4899.js +11 -0
- package/dist/5734.js +1 -1
- package/dist/{0~6151.js → 6151.js} +169 -13
- package/dist/{0~6973.js → 6973.js} +5 -5
- package/dist/721.js +9 -0
- package/dist/9131.js +554 -502
- package/dist/browser-runtime/2~907.js +1211 -0
- package/dist/browser-runtime/2~907.js.map +1 -0
- package/dist/browser-runtime/389.js +22071 -0
- package/dist/browser-runtime/389.js.LICENSE.txt +329 -0
- package/dist/browser-runtime/389.js.map +1 -0
- package/dist/browser-runtime/index.d.ts +2806 -0
- package/dist/browser-runtime/index.js +1 -0
- package/dist/browser-runtime/rslib-runtime.js +50 -0
- package/dist/browser-runtime/rslib-runtime.js.map +1 -0
- package/dist/browser.d.ts +3329 -0
- package/dist/browser.js +14 -0
- package/dist/globalSetupWorker.js +3 -2
- package/dist/index.d.ts +58 -1
- package/dist/index.js +2 -1
- package/dist/rslib-runtime.js +27 -0
- package/dist/rstestSuppressWarnings.cjs +9 -0
- package/dist/worker.d.ts +57 -1
- package/dist/worker.js +415 -1
- package/package.json +28 -13
- package/dist/0~8957.js +0 -149
- package/dist/554.js +0 -417
- package/dist/5693.js +0 -91
- /package/dist/{7913.js.LICENSE.txt → 1294.js.LICENSE.txt} +0 -0
- /package/dist/{0~6151.js.LICENSE.txt → 6151.js.LICENSE.txt} +0 -0
package/dist/0~7583.js
CHANGED
|
@@ -3,10 +3,11 @@ import 'module';
|
|
|
3
3
|
/*#__PURE__*/ import.meta.url;
|
|
4
4
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
5
5
|
import { lstat, open as promises_open, readdir, realpath as promises_realpath, stat as promises_stat } from "fs/promises";
|
|
6
|
-
import
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
6
|
+
import "./1157.js";
|
|
7
|
+
import "./2672.js";
|
|
8
|
+
import { Readable } from "./0~1981.js";
|
|
9
9
|
import { EventEmitter } from "./9131.js";
|
|
10
|
+
const promises_ = __webpack_require__("node:fs/promises");
|
|
10
11
|
const external_node_path_ = __webpack_require__("node:path");
|
|
11
12
|
const EntryTypes = {
|
|
12
13
|
FILE_TYPE: 'files',
|
|
@@ -79,7 +80,7 @@ class ReaddirpStream extends Readable {
|
|
|
79
80
|
const { root, type } = opts;
|
|
80
81
|
this._fileFilter = normalizeFilter(opts.fileFilter);
|
|
81
82
|
this._directoryFilter = normalizeFilter(opts.directoryFilter);
|
|
82
|
-
const statMethod = opts.lstat ?
|
|
83
|
+
const statMethod = opts.lstat ? promises_.lstat : promises_.stat;
|
|
83
84
|
if (wantBigintFsStats) this._stat = (path)=>statMethod(path, {
|
|
84
85
|
bigint: true
|
|
85
86
|
});
|
|
@@ -148,7 +149,7 @@ class ReaddirpStream extends Readable {
|
|
|
148
149
|
async _exploreDir(path, depth) {
|
|
149
150
|
let files;
|
|
150
151
|
try {
|
|
151
|
-
files = await
|
|
152
|
+
files = await (0, promises_.readdir)(path, this._rdOptions);
|
|
152
153
|
} catch (error) {
|
|
153
154
|
this._onError(error);
|
|
154
155
|
}
|
|
@@ -187,8 +188,8 @@ class ReaddirpStream extends Readable {
|
|
|
187
188
|
if (stats && stats.isSymbolicLink()) {
|
|
188
189
|
const full = entry.fullPath;
|
|
189
190
|
try {
|
|
190
|
-
const entryRealPath = await
|
|
191
|
-
const entryRealPathStats = await
|
|
191
|
+
const entryRealPath = await (0, promises_.realpath)(full);
|
|
192
|
+
const entryRealPathStats = await (0, promises_.lstat)(entryRealPath);
|
|
192
193
|
if (entryRealPathStats.isFile()) return 'file';
|
|
193
194
|
if (entryRealPathStats.isDirectory()) {
|
|
194
195
|
const len = entryRealPath.length;
|
|
@@ -221,7 +222,7 @@ function readdirp(root, options = {}) {
|
|
|
221
222
|
options.root = root;
|
|
222
223
|
return new ReaddirpStream(options);
|
|
223
224
|
}
|
|
224
|
-
const external_node_fs_ = __webpack_require__("
|
|
225
|
+
const external_node_fs_ = __webpack_require__("fs");
|
|
225
226
|
const external_node_os_ = __webpack_require__("node:os");
|
|
226
227
|
const STR_DATA = 'data';
|
|
227
228
|
const STR_END = 'end';
|