@rstest/core 0.4.0 → 0.4.1
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/dist/0~223.js +1 -1
- package/dist/0~33.js +5 -2
- package/dist/0~493.js +0 -21
- package/dist/0~603.js +5 -2
- package/dist/0~669.js +3 -3
- package/dist/0~836.js +1 -1
- package/dist/0~85.js +0 -21
- package/dist/0~928.js +1 -1
- package/dist/0~969.js +1 -1
- package/dist/0~971.js +1 -1
- package/dist/index.js +6 -6
- package/dist/worker.js +30 -6
- package/dist-types/index.d.ts +1 -1
- package/dist-types/worker.d.ts +1 -1
- package/package.json +1 -1
package/dist/0~223.js
CHANGED
|
@@ -9,7 +9,7 @@ export const __webpack_modules__ = {
|
|
|
9
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
10
10
|
initCli: ()=>initCli
|
|
11
11
|
});
|
|
12
|
-
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
12
|
+
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
|
|
13
13
|
var pathe__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("pathe");
|
|
14
14
|
var tinyglobby__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../node_modules/.pnpm/tinyglobby@0.2.15/node_modules/tinyglobby/dist/index.mjs");
|
|
15
15
|
var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/config.ts");
|
package/dist/0~33.js
CHANGED
|
@@ -393,6 +393,7 @@ export const __webpack_modules__ = {
|
|
|
393
393
|
});
|
|
394
394
|
var node_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("node:module");
|
|
395
395
|
var node_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("node:url");
|
|
396
|
+
var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/utils/index.ts");
|
|
396
397
|
const CoverageProviderMap = {
|
|
397
398
|
istanbul: '@rstest/coverage-istanbul'
|
|
398
399
|
};
|
|
@@ -412,8 +413,10 @@ export const __webpack_modules__ = {
|
|
|
412
413
|
pluginCoverage,
|
|
413
414
|
CoverageProvider
|
|
414
415
|
};
|
|
415
|
-
} catch
|
|
416
|
-
|
|
416
|
+
} catch {
|
|
417
|
+
const error = new Error(`Failed to load coverage provider module: ${_utils__WEBPACK_IMPORTED_MODULE_2__.yW.cyan(moduleName)} in ${_utils__WEBPACK_IMPORTED_MODULE_2__.yW.underline(root)}, please make sure it is installed.\n`);
|
|
418
|
+
error.stack = '';
|
|
419
|
+
throw error;
|
|
417
420
|
}
|
|
418
421
|
};
|
|
419
422
|
async function createCoverageProvider(options, root) {
|
package/dist/0~493.js
CHANGED
|
@@ -2,7 +2,6 @@ import 'module';
|
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
3
|
import { AssertionError, strict } from "node:assert";
|
|
4
4
|
import { Console } from "node:console";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
|
|
6
5
|
export const __webpack_id__ = "493";
|
|
7
6
|
export const __webpack_ids__ = [
|
|
8
7
|
"493"
|
|
@@ -123,25 +122,5 @@ export const __webpack_modules__ = {
|
|
|
123
122
|
}
|
|
124
123
|
return new CustomConsole(process.stdout, process.stderr);
|
|
125
124
|
}
|
|
126
|
-
},
|
|
127
|
-
"./src/utils/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
128
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
129
|
-
fN: ()=>helper.fN,
|
|
130
|
-
Gv: ()=>helper.Gv,
|
|
131
|
-
kV: ()=>helper.kV,
|
|
132
|
-
q_: ()=>constants.q_,
|
|
133
|
-
bg: ()=>helper.bg,
|
|
134
|
-
yW: ()=>helper.yW
|
|
135
|
-
});
|
|
136
|
-
var constants = __webpack_require__("./src/utils/constants.ts");
|
|
137
|
-
var helper = __webpack_require__("./src/utils/helper.ts");
|
|
138
|
-
__webpack_require__("./src/utils/logger.ts");
|
|
139
|
-
__webpack_require__("node:fs");
|
|
140
|
-
__webpack_require__("node:fs/promises");
|
|
141
|
-
__webpack_require__("node:module");
|
|
142
|
-
__webpack_require__("pathe");
|
|
143
|
-
},
|
|
144
|
-
"node:fs/promises": function(module) {
|
|
145
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__;
|
|
146
125
|
}
|
|
147
126
|
};
|
package/dist/0~603.js
CHANGED
|
@@ -12,6 +12,7 @@ export const __webpack_modules__ = {
|
|
|
12
12
|
});
|
|
13
13
|
var node_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("node:module");
|
|
14
14
|
var node_url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("node:url");
|
|
15
|
+
var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/utils/index.ts");
|
|
15
16
|
const CoverageProviderMap = {
|
|
16
17
|
istanbul: '@rstest/coverage-istanbul'
|
|
17
18
|
};
|
|
@@ -31,8 +32,10 @@ export const __webpack_modules__ = {
|
|
|
31
32
|
pluginCoverage,
|
|
32
33
|
CoverageProvider
|
|
33
34
|
};
|
|
34
|
-
} catch
|
|
35
|
-
|
|
35
|
+
} catch {
|
|
36
|
+
const error = new Error(`Failed to load coverage provider module: ${_utils__WEBPACK_IMPORTED_MODULE_2__.yW.cyan(moduleName)} in ${_utils__WEBPACK_IMPORTED_MODULE_2__.yW.underline(root)}, please make sure it is installed.\n`);
|
|
37
|
+
error.stack = '';
|
|
38
|
+
throw error;
|
|
36
39
|
}
|
|
37
40
|
};
|
|
38
41
|
async function createCoverageProvider(options, root) {
|
package/dist/0~669.js
CHANGED
|
@@ -11,7 +11,7 @@ export const __webpack_modules__ = {
|
|
|
11
11
|
__webpack_require__.d(__webpack_exports__, {
|
|
12
12
|
createRstest: ()=>createRstest
|
|
13
13
|
});
|
|
14
|
-
var external_node_fs_ = __webpack_require__("
|
|
14
|
+
var external_node_fs_ = __webpack_require__("fs");
|
|
15
15
|
var manager = __webpack_require__("../../node_modules/.pnpm/@vitest+snapshot@3.2.4/node_modules/@vitest/snapshot/dist/manager.js");
|
|
16
16
|
var external_pathe_ = __webpack_require__("pathe");
|
|
17
17
|
var src_config = __webpack_require__("./src/config.ts");
|
|
@@ -555,7 +555,7 @@ export const __webpack_modules__ = {
|
|
|
555
555
|
});
|
|
556
556
|
this.reporters = reporters;
|
|
557
557
|
this.snapshotManager = snapshotManager;
|
|
558
|
-
this.version = "0.4.
|
|
558
|
+
this.version = "0.4.1";
|
|
559
559
|
this.rootPath = rootPath;
|
|
560
560
|
this.originalConfig = userConfig;
|
|
561
561
|
this.normalizedConfig = rstestConfig;
|
|
@@ -662,7 +662,7 @@ export const __webpack_modules__ = {
|
|
|
662
662
|
parseErrorStacktrace: ()=>parseErrorStacktrace,
|
|
663
663
|
printError: ()=>printError
|
|
664
664
|
});
|
|
665
|
-
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
665
|
+
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
|
|
666
666
|
var _jridgewell_trace_mapping__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../node_modules/.pnpm/@jridgewell+trace-mapping@0.3.31/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs");
|
|
667
667
|
var stacktrace_parser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../node_modules/.pnpm/stacktrace-parser@0.1.11/node_modules/stacktrace-parser/dist/stack-trace-parser.esm.js");
|
|
668
668
|
var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/index.ts");
|
package/dist/0~836.js
CHANGED
|
@@ -9,7 +9,7 @@ export const __webpack_modules__ = {
|
|
|
9
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
10
10
|
pluginCoverageCore: ()=>pluginCoverageCore
|
|
11
11
|
});
|
|
12
|
-
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
12
|
+
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
|
|
13
13
|
const pluginCoverageCore = (coverageOptions)=>({
|
|
14
14
|
name: 'rstest:coverage-core',
|
|
15
15
|
setup: (api)=>{
|
package/dist/0~85.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import 'module';
|
|
2
2
|
/*#__PURE__*/ import.meta.url;
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_chai__ from "chai";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
|
|
5
4
|
export const __webpack_id__ = "85";
|
|
6
5
|
export const __webpack_ids__ = [
|
|
7
6
|
"85"
|
|
@@ -1822,27 +1821,7 @@ export const __webpack_modules__ = {
|
|
|
1822
1821
|
return runtime;
|
|
1823
1822
|
};
|
|
1824
1823
|
},
|
|
1825
|
-
"./src/utils/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1826
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
1827
|
-
fN: ()=>helper.fN,
|
|
1828
|
-
Gv: ()=>helper.Gv,
|
|
1829
|
-
kV: ()=>helper.kV,
|
|
1830
|
-
q_: ()=>constants.q_,
|
|
1831
|
-
bg: ()=>helper.bg,
|
|
1832
|
-
yW: ()=>helper.yW
|
|
1833
|
-
});
|
|
1834
|
-
var constants = __webpack_require__("./src/utils/constants.ts");
|
|
1835
|
-
var helper = __webpack_require__("./src/utils/helper.ts");
|
|
1836
|
-
__webpack_require__("./src/utils/logger.ts");
|
|
1837
|
-
__webpack_require__("node:fs");
|
|
1838
|
-
__webpack_require__("node:fs/promises");
|
|
1839
|
-
__webpack_require__("node:module");
|
|
1840
|
-
__webpack_require__("pathe");
|
|
1841
|
-
},
|
|
1842
1824
|
chai: function(module) {
|
|
1843
1825
|
module.exports = __WEBPACK_EXTERNAL_MODULE_chai__;
|
|
1844
|
-
},
|
|
1845
|
-
"node:fs/promises": function(module) {
|
|
1846
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__;
|
|
1847
1826
|
}
|
|
1848
1827
|
};
|
package/dist/0~928.js
CHANGED
|
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
|
|
|
10
10
|
__webpack_require__.d(__webpack_exports__, {
|
|
11
11
|
watch: ()=>watch
|
|
12
12
|
});
|
|
13
|
-
var external_node_fs_ = __webpack_require__("
|
|
13
|
+
var external_node_fs_ = __webpack_require__("fs");
|
|
14
14
|
var promises_ = __webpack_require__("fs/promises");
|
|
15
15
|
var external_events_ = __webpack_require__("events");
|
|
16
16
|
var external_node_path_ = __webpack_require__("node:path");
|
package/dist/0~969.js
CHANGED
|
@@ -41,7 +41,7 @@ export const __webpack_modules__ = {
|
|
|
41
41
|
var path = __webpack_require__("node:path");
|
|
42
42
|
var fs;
|
|
43
43
|
try {
|
|
44
|
-
fs = __webpack_require__("
|
|
44
|
+
fs = __webpack_require__("fs");
|
|
45
45
|
if (!fs.existsSync || !fs.readFileSync) fs = null;
|
|
46
46
|
} catch (err) {}
|
|
47
47
|
var bufferFrom = __webpack_require__("../../node_modules/.pnpm/buffer-from@1.1.2/node_modules/buffer-from/index.js");
|
package/dist/0~971.js
CHANGED
|
@@ -9,7 +9,7 @@ export const __webpack_modules__ = {
|
|
|
9
9
|
__webpack_require__.d(__webpack_exports__, {
|
|
10
10
|
listTests: ()=>listTests
|
|
11
11
|
});
|
|
12
|
-
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
12
|
+
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
|
|
13
13
|
var node_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("node:path");
|
|
14
14
|
var _pool__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/pool/index.ts");
|
|
15
15
|
var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/index.ts");
|
package/dist/index.js
CHANGED
|
@@ -2018,7 +2018,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2018
2018
|
function setupCommands() {
|
|
2019
2019
|
const cli = dist('rstest');
|
|
2020
2020
|
cli.help();
|
|
2021
|
-
cli.version("0.4.
|
|
2021
|
+
cli.version("0.4.1");
|
|
2022
2022
|
applyCommonOptions(cli);
|
|
2023
2023
|
cli.command('[...filters]', 'run tests').option('-w, --watch', 'Run tests in watch mode').action(async (filters, options)=>{
|
|
2024
2024
|
(0, prepare.N)();
|
|
@@ -2091,7 +2091,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2091
2091
|
if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) console.log();
|
|
2092
2092
|
}
|
|
2093
2093
|
function showRstest() {
|
|
2094
|
-
_utils_logger__WEBPACK_IMPORTED_MODULE_0__.vF.greet(" Rstest v0.4.
|
|
2094
|
+
_utils_logger__WEBPACK_IMPORTED_MODULE_0__.vF.greet(" Rstest v0.4.1");
|
|
2095
2095
|
_utils_logger__WEBPACK_IMPORTED_MODULE_0__.vF.log('');
|
|
2096
2096
|
}
|
|
2097
2097
|
},
|
|
@@ -2101,7 +2101,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2101
2101
|
Z9: ()=>loadConfig,
|
|
2102
2102
|
wX: ()=>withDefaultConfig
|
|
2103
2103
|
});
|
|
2104
|
-
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
2104
|
+
var node_fs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("fs");
|
|
2105
2105
|
var _rsbuild_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@rsbuild/core");
|
|
2106
2106
|
var pathe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("pathe");
|
|
2107
2107
|
var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./src/utils/index.ts");
|
|
@@ -2421,7 +2421,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2421
2421
|
var constants = __webpack_require__("./src/utils/constants.ts");
|
|
2422
2422
|
var helper = __webpack_require__("./src/utils/helper.ts");
|
|
2423
2423
|
var logger = __webpack_require__("./src/utils/logger.ts");
|
|
2424
|
-
var external_node_fs_ = __webpack_require__("
|
|
2424
|
+
var external_node_fs_ = __webpack_require__("fs");
|
|
2425
2425
|
var promises_ = __webpack_require__("node:fs/promises");
|
|
2426
2426
|
var external_node_module_ = __webpack_require__("node:module");
|
|
2427
2427
|
var external_pathe_ = __webpack_require__("pathe");
|
|
@@ -2816,7 +2816,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2816
2816
|
events: function(module) {
|
|
2817
2817
|
module.exports = __WEBPACK_EXTERNAL_MODULE_events__;
|
|
2818
2818
|
},
|
|
2819
|
-
|
|
2819
|
+
fs: function(module) {
|
|
2820
2820
|
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
|
|
2821
2821
|
},
|
|
2822
2822
|
"node:fs/promises": function(module) {
|
|
@@ -2842,7 +2842,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
2842
2842
|
ey: ()=>isDynamicPattern,
|
|
2843
2843
|
glob: ()=>glob
|
|
2844
2844
|
});
|
|
2845
|
-
var external_node_fs_ = __webpack_require__("
|
|
2845
|
+
var external_node_fs_ = __webpack_require__("fs");
|
|
2846
2846
|
var external_node_path_ = __webpack_require__("node:path");
|
|
2847
2847
|
var __require = /* @__PURE__ */ (0, __WEBPACK_EXTERNAL_MODULE_module__.createRequire)(import.meta.url);
|
|
2848
2848
|
function cleanPath(path) {
|
package/dist/worker.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import __rslib_shim_module__ from 'module';
|
|
3
3
|
const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
|
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_node_os_74b4b876__ from "node:os";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
|
|
@@ -5141,6 +5142,23 @@ var __webpack_modules__ = {
|
|
|
5141
5142
|
};
|
|
5142
5143
|
};
|
|
5143
5144
|
},
|
|
5145
|
+
"./src/utils/index.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5146
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
5147
|
+
fN: ()=>helper.fN,
|
|
5148
|
+
Gv: ()=>helper.Gv,
|
|
5149
|
+
kV: ()=>helper.kV,
|
|
5150
|
+
q_: ()=>constants.q_,
|
|
5151
|
+
bg: ()=>helper.bg,
|
|
5152
|
+
yW: ()=>helper.yW
|
|
5153
|
+
});
|
|
5154
|
+
var constants = __webpack_require__("./src/utils/constants.ts");
|
|
5155
|
+
var helper = __webpack_require__("./src/utils/helper.ts");
|
|
5156
|
+
__webpack_require__("./src/utils/logger.ts");
|
|
5157
|
+
__webpack_require__("fs");
|
|
5158
|
+
__webpack_require__("node:fs/promises");
|
|
5159
|
+
__webpack_require__("node:module");
|
|
5160
|
+
__webpack_require__("pathe");
|
|
5161
|
+
},
|
|
5144
5162
|
"./src/utils/logger.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5145
5163
|
__webpack_require__.d(__webpack_exports__, {
|
|
5146
5164
|
vF: ()=>src_logger
|
|
@@ -5425,9 +5443,12 @@ var __webpack_modules__ = {
|
|
|
5425
5443
|
"timers/promises": function(module) {
|
|
5426
5444
|
module.exports = require("timers/promises");
|
|
5427
5445
|
},
|
|
5428
|
-
|
|
5446
|
+
fs: function(module) {
|
|
5429
5447
|
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
|
|
5430
5448
|
},
|
|
5449
|
+
"node:fs/promises": function(module) {
|
|
5450
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__;
|
|
5451
|
+
},
|
|
5431
5452
|
"node:module": function(module) {
|
|
5432
5453
|
module.exports = __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__;
|
|
5433
5454
|
},
|
|
@@ -5574,6 +5595,7 @@ __webpack_require__.m = __webpack_modules__;
|
|
|
5574
5595
|
})();
|
|
5575
5596
|
__webpack_require__("./src/runtime/worker/setup.ts");
|
|
5576
5597
|
var external_node_module_ = __webpack_require__("node:module");
|
|
5598
|
+
var utils = __webpack_require__("./src/utils/index.ts");
|
|
5577
5599
|
const CoverageProviderMap = {
|
|
5578
5600
|
istanbul: '@rstest/coverage-istanbul'
|
|
5579
5601
|
};
|
|
@@ -5593,8 +5615,10 @@ const loadCoverageProvider = async (options, root)=>{
|
|
|
5593
5615
|
pluginCoverage,
|
|
5594
5616
|
CoverageProvider
|
|
5595
5617
|
};
|
|
5596
|
-
} catch
|
|
5597
|
-
|
|
5618
|
+
} catch {
|
|
5619
|
+
const error = new Error(`Failed to load coverage provider module: ${utils.yW.cyan(moduleName)} in ${utils.yW.underline(root)}, please make sure it is installed.\n`);
|
|
5620
|
+
error.stack = '';
|
|
5621
|
+
throw error;
|
|
5598
5622
|
}
|
|
5599
5623
|
};
|
|
5600
5624
|
async function createCoverageProvider(options, root) {
|
|
@@ -5654,7 +5678,7 @@ const asModule = async (something, defaultExport, context, unlinked)=>{
|
|
|
5654
5678
|
return m;
|
|
5655
5679
|
};
|
|
5656
5680
|
const isRelativePath = (p)=>/^\.\.?\//.test(p);
|
|
5657
|
-
const
|
|
5681
|
+
const worker_createRequire = (filename, distPath, rstestContext, assetFiles, interopDefault)=>{
|
|
5658
5682
|
const _require = (()=>{
|
|
5659
5683
|
try {
|
|
5660
5684
|
return (0, external_node_module_.createRequire)(filename);
|
|
@@ -5733,7 +5757,7 @@ const loadModule = ({ codeContent, distPath, testPath, rstestContext, assetFiles
|
|
|
5733
5757
|
const context = {
|
|
5734
5758
|
module: localModule,
|
|
5735
5759
|
exports: localModule.exports,
|
|
5736
|
-
require:
|
|
5760
|
+
require: worker_createRequire(testPath, distPath, rstestContext, assetFiles, interopDefault),
|
|
5737
5761
|
__rstest_dynamic_import__: defineRstestDynamicImport({
|
|
5738
5762
|
testPath,
|
|
5739
5763
|
interopDefault
|
|
@@ -5798,7 +5822,7 @@ function createRuntimeRpc(options) {
|
|
|
5798
5822
|
rpc
|
|
5799
5823
|
};
|
|
5800
5824
|
}
|
|
5801
|
-
var external_node_fs_ = __webpack_require__("
|
|
5825
|
+
var external_node_fs_ = __webpack_require__("fs");
|
|
5802
5826
|
class NodeSnapshotEnvironment {
|
|
5803
5827
|
constructor(options = {}){
|
|
5804
5828
|
this.options = options;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -2062,7 +2062,7 @@ declare type RstestExpect = ExpectStatic;
|
|
|
2062
2062
|
|
|
2063
2063
|
declare type RstestPoolOptions = {
|
|
2064
2064
|
/** Pool used to run tests in. */
|
|
2065
|
-
type
|
|
2065
|
+
type?: RstestPoolType;
|
|
2066
2066
|
/** Maximum number or percentage of workers to run tests in. */
|
|
2067
2067
|
maxWorkers?: number | string;
|
|
2068
2068
|
/** Minimum number or percentage of workers to run tests in. */
|
package/dist-types/worker.d.ts
CHANGED
|
@@ -1792,7 +1792,7 @@ declare type RstestExpect = ExpectStatic;
|
|
|
1792
1792
|
|
|
1793
1793
|
declare type RstestPoolOptions = {
|
|
1794
1794
|
/** Pool used to run tests in. */
|
|
1795
|
-
type
|
|
1795
|
+
type?: RstestPoolType;
|
|
1796
1796
|
/** Maximum number or percentage of workers to run tests in. */
|
|
1797
1797
|
maxWorkers?: number | string;
|
|
1798
1798
|
/** Minimum number or percentage of workers to run tests in. */
|