Skip to content

Commit b59f469

Browse files
committed
chore: reorganize, fix check
1 parent fab8eac commit b59f469

File tree

3 files changed

+7
-39
lines changed

3 files changed

+7
-39
lines changed

package-lock.json

Lines changed: 1 addition & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/arg-parser/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"depcheck": "^1.4.7",
6464
"eslint": "^7.25.0",
6565
"mongodb": "^6.19.0",
66-
"prettier": "^2.8.8",
67-
"strip-ansi": "^7.1.2"
66+
"prettier": "^2.8.8"
6867
}
6968
}

packages/arg-parser/src/arg-parser.spec.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { MongoshUnimplementedError } from '@mongosh/errors';
22
import { expect } from 'chai';
3-
import stripAnsi from 'strip-ansi';
43
import {
54
argMetadata,
65
CliOptionsSchema,
@@ -1448,7 +1447,7 @@ describe('arg-parser', function () {
14481447
).to.throw(InvalidArgumentError, 'expected number, received string');
14491448
});
14501449

1451-
it('can handle --a.b format', () => {
1450+
it('can handle --a.b format', function () {
14521451
const schema = z.object({
14531452
a: z.object({
14541453
number: z.number(),
@@ -1475,7 +1474,7 @@ describe('arg-parser', function () {
14751474
});
14761475
});
14771476

1478-
it('can handle nested object fields', () => {
1477+
it('can handle nested object fields', function () {
14791478
const schema = z.object({
14801479
parent: z.object({
14811480
child: z.string(),
@@ -1497,7 +1496,7 @@ describe('arg-parser', function () {
14971496
});
14981497
});
14991498

1500-
it('can handle multiple types in nested objects', () => {
1499+
it('can handle multiple types in nested objects', function () {
15011500
const schema = z.object({
15021501
config: z.object({
15031502
enabled: z.boolean(),
@@ -1528,7 +1527,7 @@ describe('arg-parser', function () {
15281527
});
15291528
});
15301529

1531-
it('generateYargsOptionsFromSchema processes nested objects', () => {
1530+
it('generateYargsOptionsFromSchema processes nested objects', function () {
15321531
const schema = z.object({
15331532
server: z.object({
15341533
host: z.string(),
@@ -1544,7 +1543,7 @@ describe('arg-parser', function () {
15441543
expect(options.coerce).to.have.property('server');
15451544
});
15461545

1547-
it('generateYargsOptionsFromSchema processes deeply nested objects', () => {
1546+
it('generateYargsOptionsFromSchema processes deeply nested objects', function () {
15481547
const schema = z.object({
15491548
level1: z.object({
15501549
level2: z.object({

0 commit comments

Comments
 (0)