stonyx 0.2.3-alpha.28 → 0.2.3-alpha.29

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.
@@ -1,3 +1,4 @@
1
+ export declare const DEFAULT_TEST_GLOB = "test/**/*-test.{js,ts}";
1
2
  export default function test({ args }: {
2
3
  args: string[];
3
4
  }): Promise<void>;
package/dist/cli/test.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { spawn } from 'child_process';
2
2
  import { fileURLToPath, pathToFileURL } from 'url';
3
3
  import path from 'path';
4
+ export const DEFAULT_TEST_GLOB = 'test/**/*-test.{js,ts}';
4
5
  export default async function test({ args }) {
5
6
  const cwd = process.cwd();
6
7
  const setupFile = path.resolve(path.dirname(fileURLToPath(import.meta.url)), 'test-setup.js');
7
8
  const setupFileUrl = pathToFileURL(setupFile).href;
8
9
  const qunitBin = path.resolve(cwd, 'node_modules/qunit/bin/qunit.js');
9
- // Default to conventional test glob if no args provided
10
- const testArgs = args.length > 0 ? args : ['test/**/*-test.js'];
10
+ const testArgs = args.length > 0 ? args : [DEFAULT_TEST_GLOB];
11
11
  const child = spawn(process.execPath, [
12
12
  '--import', setupFileUrl,
13
13
  qunitBin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stonyx",
3
- "version": "0.2.3-alpha.28",
3
+ "version": "0.2.3-alpha.29",
4
4
  "description": "Base stonyx framework module",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",