@joystick.js/cli-canary 0.0.0-canary.131 → 0.0.0-canary.133

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.
@@ -223,13 +223,13 @@ var functions_default = {
223
223
  args: {
224
224
  watch: {
225
225
  set: !!rawArgs.includes("watch"),
226
- parent: "watch",
226
+ parent: "test",
227
227
  value: !!rawArgs.includes("watch"),
228
228
  description: "Run joystick test in watch mode."
229
229
  }
230
230
  },
231
231
  options: {},
232
- function: test()
232
+ function: test
233
233
  },
234
234
  update: {
235
235
  set: !!rawArgs.includes("update"),
@@ -1,5 +1,9 @@
1
1
  import dev from "../../lib/dev/index.js";
2
2
  var test_default = async (args = {}, options = {}) => {
3
+ console.log({
4
+ args,
5
+ options
6
+ });
3
7
  await dev({
4
8
  environment: "test",
5
9
  process,
@@ -515,7 +515,6 @@ const dev = async (options, { resolve, reject }) => {
515
515
  if (options?.environment === "test") {
516
516
  process.loader.stop();
517
517
  const databaseProcessIds = getDatabaseProcessIds();
518
- console.log("OPS", options);
519
518
  await runTests({
520
519
  watch: options?.watch,
521
520
  __dirname,
@@ -51,7 +51,6 @@ const handleAvaSTDIO = (ava = {}, options = {}) => {
51
51
  const runAva = (options = {}) => {
52
52
  try {
53
53
  const avaPath = `${process.cwd()}/node_modules/.bin/ava`;
54
- console.log("OPTIONS IN AVA", options);
55
54
  return new Promise((resolve, reject) => {
56
55
  const ava = child_process.exec(`${avaPath} --config ${options?.__dirname}/tests.config.js ${options?.watch ? "--watch" : ""}`, {
57
56
  stdio: "inherit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.131",
3
+ "version": "0.0.0-canary.133",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -226,13 +226,13 @@ export default {
226
226
  args: {
227
227
  watch: {
228
228
  set: !!rawArgs.includes('watch'),
229
- parent: 'watch',
229
+ parent: 'test',
230
230
  value: !!rawArgs.includes('watch'),
231
231
  description: 'Run joystick test in watch mode.',
232
232
  },
233
233
  },
234
234
  options: {},
235
- function: test(),
235
+ function: test,
236
236
  },
237
237
  update: {
238
238
  set: !!rawArgs.includes('update'),
@@ -1,6 +1,11 @@
1
1
  import dev from "../../lib/dev/index.js";
2
2
 
3
3
  export default async (args = {}, options = {}) => {
4
+ console.log({
5
+ args,
6
+ options,
7
+ });
8
+
4
9
  await dev({
5
10
  environment: 'test',
6
11
  process,
@@ -619,9 +619,7 @@ const dev = async (options, { resolve, reject }) => {
619
619
  if (options?.environment === 'test') {
620
620
  process.loader.stop();
621
621
  const databaseProcessIds = getDatabaseProcessIds();
622
-
623
- console.log('OPS', options);
624
-
622
+
625
623
  await runTests({
626
624
  watch: options?.watch,
627
625
  __dirname,
@@ -73,8 +73,6 @@ const runAva = (options = {}) => {
73
73
  // add Ava as a dependency to their app in order to write tests.
74
74
  const avaPath = `${process.cwd()}/node_modules/.bin/ava`;
75
75
 
76
- console.log('OPTIONS IN AVA', options);
77
-
78
76
  return new Promise((resolve, reject) => {
79
77
  // NOTE: Despite using the app's node_modules path to reference Ava, we still want to reference
80
78
  // the internal path here for the default test config in /lib/dev/tests.config.js.