@joystick.js/cli-canary 0.0.0-canary.103 → 0.0.0-canary.104
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/lib/dev/runTests.js
CHANGED
|
@@ -19,7 +19,8 @@ const handleAvaSTDIO = (ava = {}) => {
|
|
|
19
19
|
};
|
|
20
20
|
const runAva = (__dirname = "") => {
|
|
21
21
|
try {
|
|
22
|
-
const
|
|
22
|
+
const packageRoot = __dirname?.split("/dist")[0];
|
|
23
|
+
const avaPath = `${packageRoot}/node_modules/.bin/ava`;
|
|
23
24
|
console.log({
|
|
24
25
|
avaPath,
|
|
25
26
|
cmd: `${avaPath} --config ${__dirname}/tests.config.js`
|
package/package.json
CHANGED
package/src/lib/dev/runTests.js
CHANGED
|
@@ -24,7 +24,11 @@ const handleAvaSTDIO = (ava = {}) => {
|
|
|
24
24
|
|
|
25
25
|
const runAva = (__dirname = '') => {
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
// NOTE: __dirname includes the entire path to lib/dev/index.js but we only
|
|
28
|
+
// care about the root folder/package here (we need to reference the node_modules
|
|
29
|
+
// folder in the package).
|
|
30
|
+
const packageRoot = __dirname?.split('/dist')[0];
|
|
31
|
+
const avaPath = `${packageRoot}/node_modules/.bin/ava`;
|
|
28
32
|
|
|
29
33
|
console.log({
|
|
30
34
|
avaPath,
|