hermes-test 0.2.3 → 0.2.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.
@@ -25,7 +25,12 @@ if (!pkg) {
25
25
 
26
26
  let binPath;
27
27
  try {
28
- binPath = path.join(require.resolve(`${pkg}/package.json`), "..", "bin", "hermes-test");
28
+ // Search from cwd and script dir so the platform package is found
29
+ // even when hoisted to a different node_modules in monorepos (bun/pnpm/yarn workspaces)
30
+ const resolved = require.resolve(`${pkg}/package.json`, {
31
+ paths: [process.cwd(), path.join(__dirname, "..")]
32
+ });
33
+ binPath = path.join(path.dirname(resolved), "bin", "hermes-test");
29
34
  } catch {
30
35
  console.error(`hermes-test: platform package ${pkg} not installed.`);
31
36
  console.error(`Run: npm install --save-dev ${pkg}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hermes-test",
3
- "version": "0.2.3",
4
- "description": "147x faster than Jest. Test runner for React Native and Expo that runs in Hermes.",
3
+ "version": "0.2.4",
4
+ "description": "26-64x faster than Jest. A test runner built for React Native and Expo. One esbuild pass, one process, zero Babel.",
5
5
  "main": "src/index.ts",
6
6
  "types": "index.d.ts",
7
7
  "typesVersions": {
@@ -50,9 +50,9 @@
50
50
  "react": ">=18"
51
51
  },
52
52
  "optionalDependencies": {
53
- "@hermes-test/darwin-arm64": "0.2.3",
54
- "@hermes-test/darwin-x64": "0.2.3",
55
- "@hermes-test/linux-x64": "0.2.3"
53
+ "@hermes-test/darwin-arm64": "0.2.4",
54
+ "@hermes-test/darwin-x64": "0.2.4",
55
+ "@hermes-test/linux-x64": "0.2.4"
56
56
  },
57
57
  "files": [
58
58
  "src/",