@oclif/test 3.2.7 → 3.2.9

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/lib/command.js CHANGED
@@ -15,7 +15,9 @@ function command(args, opts = {}) {
15
15
  ctx.config = await (0, load_config_1.loadConfig)(opts).run({});
16
16
  args = castArray(args);
17
17
  const [id, ...extra] = args;
18
- const cmdId = (0, core_1.toStandardizedId)(id, ctx.config);
18
+ let cmdId = (0, core_1.toStandardizedId)(id, ctx.config);
19
+ if (cmdId === '.')
20
+ cmdId = Symbol('SINGLE_COMMAND_CLI').toString();
19
21
  ctx.expectation ||= `runs ${args.join(' ')}`;
20
22
  await ctx.config.runHook('init', { argv: extra, id: cmdId });
21
23
  ctx.returned = await ctx.config.runCommand(cmdId, extra);
package/lib/exit.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="mocha" />
2
1
  import { Errors } from '@oclif/core';
3
2
  /**
4
3
  * ensures that a oclif command or hook exits
package/lib/hook.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="mocha" />
2
1
  import { Interfaces } from '@oclif/core';
3
2
  import { loadConfig } from './load-config';
4
3
  type Context = {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@oclif/test",
3
3
  "description": "test helpers for oclif components",
4
- "version": "3.2.7",
4
+ "version": "3.2.9",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/test/issues",
7
7
  "dependencies": {
8
8
  "@oclif/core": "^3.26.0",
9
9
  "chai": "^4.4.1",
10
- "fancy-test": "^3.0.13"
10
+ "fancy-test": "^3.0.14"
11
11
  },
12
12
  "devDependencies": {
13
13
  "@commitlint/config-conventional": "^18.6.3",
@@ -18,7 +18,7 @@
18
18
  "commitlint": "^18.6.1",
19
19
  "eslint": "^8.57.0",
20
20
  "eslint-config-oclif": "^5.1.1",
21
- "eslint-config-oclif-typescript": "^3.1.2",
21
+ "eslint-config-oclif-typescript": "^3.1.3",
22
22
  "eslint-config-prettier": "^9.1.0",
23
23
  "husky": "^9.0.3",
24
24
  "lint-staged": "^15.2.2",
@@ -27,7 +27,7 @@
27
27
  "prettier": "^3.2.5",
28
28
  "shx": "^0.3.3",
29
29
  "ts-node": "^10.9.2",
30
- "typescript": "^5.4.3"
30
+ "typescript": "^5.4.4"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">=18.0.0"