@zuplo/cli 1.23.0 → 1.24.0

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/cmds/test.js CHANGED
@@ -10,6 +10,10 @@ export default {
10
10
  .option("endpoint", {
11
11
  type: "string",
12
12
  describe: "The URL of the zup to test against",
13
+ })
14
+ .option("filter", {
15
+ type: "string",
16
+ describe: "A filter to run a subset of tests (e.g., --filter 'test name' or --filter '/test-name-regex/')",
13
17
  })
14
18
  .option("dir", {
15
19
  type: "string",
@@ -28,12 +28,12 @@ async function locateDeno(dir) {
28
28
  export async function runTests(argv) {
29
29
  const denoExecutable = await locateDenoExecutable();
30
30
  if (denoExecutable) {
31
- const denoProcess = execa(denoExecutable, [
32
- "test",
33
- "--allow-net",
34
- "--no-check",
35
- `${argv.dir}/${TEST_OUT_FOLDER}`,
36
- ]);
31
+ const args = ["test", "--allow-net", "--no-check"];
32
+ if (argv.filter) {
33
+ args.push("--filter", argv.filter);
34
+ }
35
+ args.push(`${argv.dir}/${TEST_OUT_FOLDER}`);
36
+ const denoProcess = execa(denoExecutable, args);
37
37
  denoProcess.stdout?.pipe(process.stdout);
38
38
  denoProcess.stderr?.pipe(process.stderr);
39
39
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.23.0",
3
+ "version": "1.24.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "author": "Zuplo, Inc.",
@@ -54,7 +54,7 @@
54
54
  "pino-pretty": "^9.1.1",
55
55
  "rimraf": "^3.0.2",
56
56
  "semver": "^7.3.8",
57
- "simple-git": "^3.14.1",
57
+ "simple-git": "^3.16.0",
58
58
  "tar": "^6.1.11",
59
59
  "temp": "^0.9.4",
60
60
  "yargs": "^17.6.0"