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.
- package/dist/cli/test.d.ts +1 -0
- package/dist/cli/test.js +2 -2
- package/package.json +1 -1
package/dist/cli/test.d.ts
CHANGED
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
|
-
|
|
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,
|