@gabjauf/vitest-dse 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +8 -2
  2. package/runtime.js +3 -2
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@gabjauf/vitest-dse",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "DSE-powered property testing for Vitest using ExpoSE engine + Babel instrumentation",
5
5
  "license": "MIT",
6
- "keywords": ["vitest", "symbolic-execution", "property-testing", "dse", "expose"],
6
+ "keywords": [
7
+ "vitest",
8
+ "symbolic-execution",
9
+ "property-testing",
10
+ "dse",
11
+ "expose"
12
+ ],
7
13
  "repository": {
8
14
  "type": "git",
9
15
  "url": "https://github.com/ExpoSEJS/ExpoSE.git",
package/runtime.js CHANGED
@@ -12,8 +12,9 @@
12
12
 
13
13
  const path = require("path");
14
14
 
15
- // Resolve from Analyser/bin (compiled CJS)
16
- const analyserBin = path.join(__dirname, "../../Analyser/bin");
15
+ // Resolve from env var (dev/monorepo) or from the installed package (npm consumers).
16
+ const analyserBin = process.env.DSE_ANALYSER_BIN ||
17
+ path.join(path.dirname(require.resolve("@gabjauf/expose-analyser/package.json")), "bin");
17
18
 
18
19
  const SymbolicStateModule = require(path.join(analyserBin, "SymbolicState"));
19
20
  const SymbolicState = SymbolicStateModule.default || SymbolicStateModule;