@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.
@@ -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",
@@ -1,4 +1,3 @@
1
- console.log(process.cwd());
2
1
  var tests_config_default = {
3
2
  files: ["tests/**/*"]
4
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.118",
3
+ "version": "0.0.0-canary.119",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -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',
@@ -1,5 +1,3 @@
1
- console.log(process.cwd());
2
-
3
1
  export default {
4
2
  files: ['tests/**/*']
5
3
  };