@rstest/core 0.7.3 → 0.7.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.
package/dist/693.js ADDED
@@ -0,0 +1,91 @@
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
+ __webpack_require__.add({
10
+ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
11
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
12
+ 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);
13
+ let formatter = (open, close, replace = open)=>(input)=>{
14
+ let string = "" + input, index = string.indexOf(close, open.length);
15
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
16
+ };
17
+ let replaceClose = (string, close, replace, index)=>{
18
+ let result = "", cursor = 0;
19
+ do {
20
+ result += string.substring(cursor, index) + replace;
21
+ cursor = index + close.length;
22
+ index = string.indexOf(close, cursor);
23
+ }while (~index);
24
+ return result + string.substring(cursor);
25
+ };
26
+ let createColors = (enabled = isColorSupported)=>{
27
+ let f = enabled ? formatter : ()=>String;
28
+ return {
29
+ isColorSupported: enabled,
30
+ reset: f("\x1b[0m", "\x1b[0m"),
31
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
32
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
33
+ italic: f("\x1b[3m", "\x1b[23m"),
34
+ underline: f("\x1b[4m", "\x1b[24m"),
35
+ inverse: f("\x1b[7m", "\x1b[27m"),
36
+ hidden: f("\x1b[8m", "\x1b[28m"),
37
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
38
+ black: f("\x1b[30m", "\x1b[39m"),
39
+ red: f("\x1b[31m", "\x1b[39m"),
40
+ green: f("\x1b[32m", "\x1b[39m"),
41
+ yellow: f("\x1b[33m", "\x1b[39m"),
42
+ blue: f("\x1b[34m", "\x1b[39m"),
43
+ magenta: f("\x1b[35m", "\x1b[39m"),
44
+ cyan: f("\x1b[36m", "\x1b[39m"),
45
+ white: f("\x1b[37m", "\x1b[39m"),
46
+ gray: f("\x1b[90m", "\x1b[39m"),
47
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
48
+ bgRed: f("\x1b[41m", "\x1b[49m"),
49
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
50
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
51
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
52
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
53
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
54
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
55
+ blackBright: f("\x1b[90m", "\x1b[39m"),
56
+ redBright: f("\x1b[91m", "\x1b[39m"),
57
+ greenBright: f("\x1b[92m", "\x1b[39m"),
58
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
59
+ blueBright: f("\x1b[94m", "\x1b[39m"),
60
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
61
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
62
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
63
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
64
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
65
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
66
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
67
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
68
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
69
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
70
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m")
71
+ };
72
+ };
73
+ module.exports = createColors();
74
+ module.exports.createColors = createColors;
75
+ },
76
+ "node:fs" (module) {
77
+ module.exports = __rspack_external_node_fs_5ea92f0c;
78
+ },
79
+ "node:os" (module) {
80
+ module.exports = __rspack_external_node_os_74b4b876;
81
+ },
82
+ "node:path" (module) {
83
+ module.exports = __rspack_external_node_path_c5b9b54f;
84
+ },
85
+ "node:tty" (module) {
86
+ module.exports = __rspack_external_node_tty_c64aab7e;
87
+ },
88
+ "node:util" (module) {
89
+ module.exports = __rspack_external_node_util_1b29d436;
90
+ }
91
+ });
package/dist/734.js CHANGED
@@ -1,8 +1,10 @@
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 "./693.js";
5
+ import { createRequire } from "./881.js";
6
+ import { pathToFileURL } from "./198.js";
7
+ import "./157.js";
6
8
  const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
7
9
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
8
10
  const CoverageProviderMap = {
@@ -13,7 +15,7 @@ const loadCoverageProvider = async (options, root)=>{
13
15
  const moduleName = CoverageProviderMap[options.provider || 'istanbul'];
14
16
  if (!moduleName) throw new Error(`Unknown coverage provider: ${options.provider}`);
15
17
  try {
16
- const require = external_node_module_createRequire(rootPath);
18
+ const require = createRequire(rootPath);
17
19
  const modulePath = require.resolve(moduleName, {
18
20
  paths: [
19
21
  rootPath
package/dist/881.js ADDED
@@ -0,0 +1,4 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import { createRequire, isBuiltin } from "node:module";
4
+ export { createRequire, isBuiltin };