@rstest/core 0.8.0 → 0.8.2

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/6973.js CHANGED
@@ -1,14 +1,12 @@
1
1
  import 'module';
2
2
  /*#__PURE__*/ import.meta.url;
3
3
  import { __webpack_require__ } from "./rslib-runtime.js";
4
- import { getAbsolutePath } from "./2672.js";
4
+ import { getAbsolutePath, color } from "./3160.js";
5
5
  import { fileURLToPath } from "./6198.js";
6
6
  import { rsbuild as __rspack_external__rsbuild_core_1b356efc } from "./4484.js";
7
7
  import { formatTestEntryName } from "./1157.js";
8
- import { posix } from "./3278.js";
9
- const external_node_fs_ = __webpack_require__("node:fs");
10
- const picocolors = __webpack_require__("../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
11
- var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
8
+ import { posix } from "./7011.js";
9
+ const external_node_fs_ = __webpack_require__("fs");
12
10
  const tryResolve = (request, rootPath)=>{
13
11
  const { resolver } = __rspack_external__rsbuild_core_1b356efc.rspack.experiments;
14
12
  const esmFirstResolver = new resolver.ResolverFactory({
@@ -28,8 +26,8 @@ const getSetupFiles = (setups, rootPath)=>{
28
26
  const setupFilePath = getAbsolutePath(rootPath, setupFile);
29
27
  try {
30
28
  if (!(0, external_node_fs_.existsSync)(setupFilePath)) {
31
- let errorMessage = `Setup file ${picocolors_default().red(setupFile)} not found`;
32
- if (setupFilePath !== setupFile) errorMessage += picocolors_default().gray(` (resolved path: ${setupFilePath})`);
29
+ let errorMessage = `Setup file ${color.red(setupFile)} not found`;
30
+ if (setupFilePath !== setupFile) errorMessage += color.gray(` (resolved path: ${setupFilePath})`);
33
31
  throw errorMessage;
34
32
  }
35
33
  const relativePath = posix.relative(rootPath, setupFilePath);
package/dist/7011.js ADDED
@@ -0,0 +1,19 @@
1
+ import 'module';
2
+ /*#__PURE__*/ import.meta.url;
3
+ import { _path } from "./3160.js";
4
+ const delimiter = /* @__PURE__ */ (()=>globalThis.process?.platform === "win32" ? ";" : ":")();
5
+ const _platforms = {
6
+ posix: void 0,
7
+ win32: void 0
8
+ };
9
+ const mix = (del = delimiter)=>new Proxy(_path, {
10
+ get (_, prop) {
11
+ if ("delimiter" === prop) return del;
12
+ if ("posix" === prop) return posix;
13
+ if ("win32" === prop) return win32;
14
+ return _platforms[prop] || _path[prop];
15
+ }
16
+ });
17
+ const posix = /* @__PURE__ */ mix(":");
18
+ const win32 = /* @__PURE__ */ mix(";");
19
+ export { posix };