@joystick.js/cli-canary 0.0.0-canary.118 → 0.0.0-canary.119
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
|
@@ -51,6 +51,7 @@ const runAva = (options = {}) => {
|
|
|
51
51
|
try {
|
|
52
52
|
const packageRoot = options?.__dirname?.split("/dist")[0];
|
|
53
53
|
const avaPath = `${packageRoot}/node_modules/.bin/ava`;
|
|
54
|
+
console.log(process.cwd());
|
|
54
55
|
return new Promise((resolve, reject) => {
|
|
55
56
|
const ava = child_process.exec(`${avaPath} --config ${options?.__dirname}/tests.config.js`, {
|
|
56
57
|
stdio: "inherit",
|
package/package.json
CHANGED
package/src/lib/dev/runTests.js
CHANGED
|
@@ -34,6 +34,8 @@ const handleAvaSTDOUT = (stdout = '', options = {}) => {
|
|
|
34
34
|
docs: 'https://cheatcode.co/docs/joystick/test/setup',
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
+
// NOTE: Do this here because the standard SIGINT and SIGTERM hooks the dev process
|
|
38
|
+
// listens for don't catch a clean exit (and the process.exit() hook fires after exit).
|
|
37
39
|
options.cleanupProcess.send(JSON.stringify(({ processIds: options?.processIds })));
|
|
38
40
|
|
|
39
41
|
return process.exit(0);
|
|
@@ -67,6 +69,8 @@ const runAva = (options = {}) => {
|
|
|
67
69
|
const packageRoot = options?.__dirname?.split('/dist')[0];
|
|
68
70
|
const avaPath = `${packageRoot}/node_modules/.bin/ava`;
|
|
69
71
|
|
|
72
|
+
console.log(process.cwd());
|
|
73
|
+
|
|
70
74
|
return new Promise((resolve, reject) => {
|
|
71
75
|
const ava = child_process.exec(`${avaPath} --config ${options?.__dirname}/tests.config.js`, {
|
|
72
76
|
stdio: 'inherit',
|