@rstest/core 0.7.2 → 0.7.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/dist/664.js ADDED
@@ -0,0 +1,93 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import * as __rspack_external_node_fs_5ea92f0c from "node:fs";
4
+ import * as __rspack_external_node_os_74b4b876 from "node:os";
5
+ import * as __rspack_external_node_path_c5b9b54f from "node:path";
6
+ import * as __rspack_external_node_tty_c64aab7e from "node:tty";
7
+ import * as __rspack_external_node_util_1b29d436 from "node:util";
8
+ import { __webpack_require__ } from "./rslib-runtime.js";
9
+ import { createRequire, isBuiltin } from "node:module";
10
+ __webpack_require__.add({
11
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
12
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
13
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || "win32" === p.platform || (p.stdout || {}).isTTY && "dumb" !== env.TERM || !!env.CI);
14
+ let formatter = (open, close, replace = open)=>(input)=>{
15
+ let string = "" + input, index = string.indexOf(close, open.length);
16
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
17
+ };
18
+ let replaceClose = (string, close, replace, index)=>{
19
+ let result = "", cursor = 0;
20
+ do {
21
+ result += string.substring(cursor, index) + replace;
22
+ cursor = index + close.length;
23
+ index = string.indexOf(close, cursor);
24
+ }while (~index);
25
+ return result + string.substring(cursor);
26
+ };
27
+ let createColors = (enabled = isColorSupported)=>{
28
+ let f = enabled ? formatter : ()=>String;
29
+ return {
30
+ isColorSupported: enabled,
31
+ reset: f("\x1b[0m", "\x1b[0m"),
32
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
33
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
34
+ italic: f("\x1b[3m", "\x1b[23m"),
35
+ underline: f("\x1b[4m", "\x1b[24m"),
36
+ inverse: f("\x1b[7m", "\x1b[27m"),
37
+ hidden: f("\x1b[8m", "\x1b[28m"),
38
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
39
+ black: f("\x1b[30m", "\x1b[39m"),
40
+ red: f("\x1b[31m", "\x1b[39m"),
41
+ green: f("\x1b[32m", "\x1b[39m"),
42
+ yellow: f("\x1b[33m", "\x1b[39m"),
43
+ blue: f("\x1b[34m", "\x1b[39m"),
44
+ magenta: f("\x1b[35m", "\x1b[39m"),
45
+ cyan: f("\x1b[36m", "\x1b[39m"),
46
+ white: f("\x1b[37m", "\x1b[39m"),
47
+ gray: f("\x1b[90m", "\x1b[39m"),
48
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
49
+ bgRed: f("\x1b[41m", "\x1b[49m"),
50
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
51
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
52
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
53
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
54
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
55
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
56
+ blackBright: f("\x1b[90m", "\x1b[39m"),
57
+ redBright: f("\x1b[91m", "\x1b[39m"),
58
+ greenBright: f("\x1b[92m", "\x1b[39m"),
59
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
60
+ blueBright: f("\x1b[94m", "\x1b[39m"),
61
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
62
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
63
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
64
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
65
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
66
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
67
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
68
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
69
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
70
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
71
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m")
72
+ };
73
+ };
74
+ module.exports = createColors();
75
+ module.exports.createColors = createColors;
76
+ },
77
+ fs (module) {
78
+ module.exports = __rspack_external_node_fs_5ea92f0c;
79
+ },
80
+ "node:os" (module) {
81
+ module.exports = __rspack_external_node_os_74b4b876;
82
+ },
83
+ "node:path" (module) {
84
+ module.exports = __rspack_external_node_path_c5b9b54f;
85
+ },
86
+ "node:tty" (module) {
87
+ module.exports = __rspack_external_node_tty_c64aab7e;
88
+ },
89
+ "node:util" (module) {
90
+ module.exports = __rspack_external_node_util_1b29d436;
91
+ }
92
+ });
93
+ export { createRequire, isBuiltin };
package/dist/672.js ADDED
@@ -0,0 +1,91 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ var UNKNOWN_FUNCTION = '<unknown>';
4
+ function parse(stackString) {
5
+ var lines = stackString.split('\n');
6
+ return lines.reduce(function(stack, line) {
7
+ var parseResult = parseChrome(line) || parseWinjs(line) || parseGecko(line) || parseNode(line) || parseJSC(line);
8
+ if (parseResult) stack.push(parseResult);
9
+ return stack;
10
+ }, []);
11
+ }
12
+ var chromeRe = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|rsc|<anonymous>|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i;
13
+ var chromeEvalRe = /\((\S*)(?::(\d+))(?::(\d+))\)/;
14
+ function parseChrome(line) {
15
+ var parts = chromeRe.exec(line);
16
+ if (!parts) return null;
17
+ var isNative = parts[2] && 0 === parts[2].indexOf('native');
18
+ var isEval = parts[2] && 0 === parts[2].indexOf('eval');
19
+ var submatch = chromeEvalRe.exec(parts[2]);
20
+ if (isEval && null != submatch) {
21
+ parts[2] = submatch[1];
22
+ parts[3] = submatch[2];
23
+ parts[4] = submatch[3];
24
+ }
25
+ return {
26
+ file: isNative ? null : parts[2],
27
+ methodName: parts[1] || UNKNOWN_FUNCTION,
28
+ arguments: isNative ? [
29
+ parts[2]
30
+ ] : [],
31
+ lineNumber: parts[3] ? +parts[3] : null,
32
+ column: parts[4] ? +parts[4] : null
33
+ };
34
+ }
35
+ var winjsRe = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|rsc|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
36
+ function parseWinjs(line) {
37
+ var parts = winjsRe.exec(line);
38
+ if (!parts) return null;
39
+ return {
40
+ file: parts[2],
41
+ methodName: parts[1] || UNKNOWN_FUNCTION,
42
+ arguments: [],
43
+ lineNumber: +parts[3],
44
+ column: parts[4] ? +parts[4] : null
45
+ };
46
+ }
47
+ var geckoRe = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|rsc|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i;
48
+ var geckoEvalRe = /(\S+) line (\d+)(?: > eval line \d+)* > eval/i;
49
+ function parseGecko(line) {
50
+ var parts = geckoRe.exec(line);
51
+ if (!parts) return null;
52
+ var isEval = parts[3] && parts[3].indexOf(' > eval') > -1;
53
+ var submatch = geckoEvalRe.exec(parts[3]);
54
+ if (isEval && null != submatch) {
55
+ parts[3] = submatch[1];
56
+ parts[4] = submatch[2];
57
+ parts[5] = null;
58
+ }
59
+ return {
60
+ file: parts[3],
61
+ methodName: parts[1] || UNKNOWN_FUNCTION,
62
+ arguments: parts[2] ? parts[2].split(',') : [],
63
+ lineNumber: parts[4] ? +parts[4] : null,
64
+ column: parts[5] ? +parts[5] : null
65
+ };
66
+ }
67
+ var javaScriptCoreRe = /^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;
68
+ function parseJSC(line) {
69
+ var parts = javaScriptCoreRe.exec(line);
70
+ if (!parts) return null;
71
+ return {
72
+ file: parts[3],
73
+ methodName: parts[1] || UNKNOWN_FUNCTION,
74
+ arguments: [],
75
+ lineNumber: +parts[4],
76
+ column: parts[5] ? +parts[5] : null
77
+ };
78
+ }
79
+ var nodeRe = /^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;
80
+ function parseNode(line) {
81
+ var parts = nodeRe.exec(line);
82
+ if (!parts) return null;
83
+ return {
84
+ file: parts[2],
85
+ methodName: parts[1] || UNKNOWN_FUNCTION,
86
+ arguments: [],
87
+ lineNumber: +parts[3],
88
+ column: parts[4] ? +parts[4] : null
89
+ };
90
+ }
91
+ export { parse };
package/dist/734.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
3
  import { __webpack_require__ } from "./rslib-runtime.js";
4
- import { external_node_module_createRequire } from "./946.js";
5
- import { pathToFileURL } from "./404.js";
4
+ import { createRequire } from "./664.js";
5
+ import { pathToFileURL } from "./198.js";
6
+ import "./157.js";
6
7
  const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
7
8
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
8
9
  const CoverageProviderMap = {
@@ -13,7 +14,7 @@ const loadCoverageProvider = async (options, root)=>{
13
14
  const moduleName = CoverageProviderMap[options.provider || 'istanbul'];
14
15
  if (!moduleName) throw new Error(`Unknown coverage provider: ${options.provider}`);
15
16
  try {
16
- const require = external_node_module_createRequire(rootPath);
17
+ const require = createRequire(rootPath);
17
18
  const modulePath = require.resolve(moduleName, {
18
19
  paths: [
19
20
  rootPath