@joystick.js/cli-canary 0.0.0-canary.121 → 0.0.0-canary.123

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.
@@ -13,7 +13,7 @@ const handleAvaSTDERR = (stderr = "", options = {}) => {
13
13
  });
14
14
  }
15
15
  } catch (exception) {
16
- throw new Error(`[actionName.handleAvaSTDERR] ${exception.message}`);
16
+ throw new Error(`[runTests.handleAvaSTDERR] ${exception.message}`);
17
17
  }
18
18
  };
19
19
  const handleAvaSTDOUT = (stdout = "", options = {}) => {
@@ -31,7 +31,7 @@ const handleAvaSTDOUT = (stdout = "", options = {}) => {
31
31
  return process.exit(0);
32
32
  }
33
33
  } catch (exception) {
34
- throw new Error(`[actionName.handleAvaSTDOUT] ${exception.message}`);
34
+ throw new Error(`[runTests.handleAvaSTDOUT] ${exception.message}`);
35
35
  }
36
36
  };
37
37
  const handleAvaSTDIO = (ava = {}, options = {}) => {
@@ -50,7 +50,7 @@ const handleAvaSTDIO = (ava = {}, options = {}) => {
50
50
  };
51
51
  const runAva = (options = {}) => {
52
52
  try {
53
- const packageRoot = options?.__dirname?.split("/dist")[0];
53
+ const packageRoot = process.cwd();
54
54
  const avaPath = `${packageRoot}/node_modules/.bin/ava`;
55
55
  return new Promise((resolve, reject) => {
56
56
  const ava = child_process.exec(`${avaPath} --config ${options?.__dirname}/tests.config.js`, {
@@ -1,5 +1,5 @@
1
1
  var tests_config_default = {
2
- files: [`${process.cwd()}/tests/**/*`]
2
+ files: [`tests/**/*`]
3
3
  };
4
4
  export {
5
5
  tests_config_default as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.121",
3
+ "version": "0.0.0-canary.123",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -17,7 +17,7 @@ const handleAvaSTDERR = (stderr = '', options = {}) => {
17
17
  });
18
18
  }
19
19
  } catch (exception) {
20
- throw new Error(`[actionName.handleAvaSTDERR] ${exception.message}`);
20
+ throw new Error(`[runTests.handleAvaSTDERR] ${exception.message}`);
21
21
  }
22
22
  };
23
23
 
@@ -42,7 +42,7 @@ const handleAvaSTDOUT = (stdout = '', options = {}) => {
42
42
  return process.exit(0);
43
43
  }
44
44
  } catch (exception) {
45
- throw new Error(`[actionName.handleAvaSTDOUT] ${exception.message}`);
45
+ throw new Error(`[runTests.handleAvaSTDOUT] ${exception.message}`);
46
46
  }
47
47
  };
48
48
 
@@ -67,7 +67,7 @@ const runAva = (options = {}) => {
67
67
  // NOTE: __dirname includes the entire path to lib/dev/index.js but we only
68
68
  // care about the root folder/package here (we need to reference the node_modules
69
69
  // folder in the package).
70
- const packageRoot = options?.__dirname?.split('/dist')[0];
70
+ const packageRoot = process.cwd();
71
71
  const avaPath = `${packageRoot}/node_modules/.bin/ava`;
72
72
 
73
73
  return new Promise((resolve, reject) => {
@@ -1,3 +1,3 @@
1
1
  export default {
2
- files: [`${process.cwd()}/tests/**/*`]
2
+ files: [`tests/**/*`]
3
3
  };