Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
b8119f4
chore(all): migrate to vitest
andriimredocly Mar 7, 2025
84163d0
packages/core/src/__tests__/output.test.ts
andriimredocly Mar 7, 2025
13d73a4
packages/core/src/__tests__/resolve-http.test.ts
andriimredocly Mar 7, 2025
da225c2
packages/core/src/__tests__/utils.test.ts
tatomyr Mar 10, 2025
1714eed
fix mock
tatomyr Mar 10, 2025
0405186
remove threshold
tatomyr Mar 10, 2025
c6f6c2a
add vitest to the pipeline
tatomyr Mar 10, 2025
1bff997
change pluralize import
tatomyr Mar 10, 2025
ec63758
packages/core/src/config/__tests__/config.test.ts
tatomyr Mar 10, 2025
aea3d04
Fix test in packages/core/src/__tests__/resolve-http.test.ts
andriimredocly Mar 11, 2025
09c4ea2
packages/respect-core/src/modules/__tests__/flow-runner/runner/resolv…
andriimredocly Mar 11, 2025
859ab90
respect-core
andriimredocly Mar 11, 2025
0431624
packages/respect-core/src/modules/__tests__/flow-runner/run-step.test.ts
andriimredocly Mar 11, 2025
036e949
packages/respect-core/src/modules/__tests__/flow-runner/schema/schema…
andriimredocly Mar 11, 2025
39d83fe
packages/respect-core/src/modules/__tests__/flow-runner/context/creat…
andriimredocly Mar 11, 2025
7c4fa34
packages/respect-core/src/utils/__tests__/har-logs/helpers/handle-req…
andriimredocly Mar 11, 2025
ace293c
fix vi.mock imports
andriimredocly Mar 11, 2025
805d003
migrate all automatically migreatable
andriimredocly Mar 11, 2025
7d68a36
remove .only in packages/core/src/rules/async3/__tests__/no-channel-t…
tatomyr Mar 11, 2025
35d76cb
prettier all files
andriimredocly Mar 11, 2025
0a89f4b
packages/cli/src/reunite/api/__tests__/api.client.test.ts
tatomyr Mar 11, 2025
fade1fb
make husky executable
andriimredocly Mar 11, 2025
d1eac91
packages/respect-core/src/modules/__tests__/config-parser/parse-reque…
andriimredocly Mar 11, 2025
f9b5459
packages/respect-core/src/modules/__tests__/arazzo-description-genera…
andriimredocly Mar 11, 2025
7df1d49
packages/respect-core/src/utils/__tests__/mtls/resolve-mtls-certifica…
andriimredocly Mar 11, 2025
1369b6c
packages/respect-core/src/modules/__tests__/config-parser/get-value-f…
andriimredocly Mar 11, 2025
711abb5
packages/respect-core/src/modules/__tests__/flow-runner/runner/create…
andriimredocly Mar 11, 2025
aa4f6ef
packages/respect-core/src/modules/__tests__/flow-runner/context/creat…
andriimredocly Mar 11, 2025
5483dac
packages/respect-core/src/modules/__tests__/flow-runner/get-workflows…
andriimredocly Mar 11, 2025
c20e1aa
packages/respect-core/src/utils/__tests__/yaml.test.ts
andriimredocly Mar 11, 2025
a77a00c
packages/respect-core/src/modules/__tests__/arazzo-description-genera…
andriimredocly Mar 11, 2025
e778c76
packages/respect-core/src/modules/__tests__/flow-runner/read-env-vari…
andriimredocly Mar 11, 2025
168367b
packages/respect-core/src/utils/__tests__/har-logs/create-har-log.tes…
andriimredocly Mar 11, 2025
cd87c8e
packages/respect-core/src/modules/__tests__/flow-runner/outputs/print…
andriimredocly Mar 11, 2025
d281280
Fix typecheck
andriimredocly Mar 11, 2025
2d83973
packages/cli/src/__tests__/utils.test.ts
tatomyr Mar 11, 2025
d4f6faf
packages/cli/src/reunite/commands/__tests__/utils.test.ts
tatomyr Mar 11, 2025
7787ac2
packages/core/src/rules/common/assertions/__tests__/asserts.test.ts
andriimredocly Mar 12, 2025
b2a2e73
packages/core/src/__tests__/walk.test.ts
andriimredocly Mar 12, 2025
3f1992d
packages/core/src/config/__tests__/load.test.ts
andriimredocly Mar 12, 2025
ac4f800
fix fs module property check
andriimredocly Mar 12, 2025
775659b
packages/core/src/rules/oas3/__tests__/no-invalid-media-type-examples…
andriimredocly Mar 12, 2025
04e9a09
packages/core/src/__tests__/resolve.test.ts
andriimredocly Mar 12, 2025
c20c3eb
packages/core/src/config/config-resolvers.ts
andriimredocly Mar 13, 2025
b93ac1e
Start E2E tests migration
andriimredocly Mar 13, 2025
788a35f
packages/cli/src/commands/split/__tests__/index.test.ts (WIP)
tatomyr Mar 13, 2025
4a8c179
packages/cli/src/__tests__/commands/lint.test.ts (WIP)
tatomyr Mar 13, 2025
38369bc
packages/cli/src/reunite/commands/__tests__/push.test.ts (WIP)
tatomyr Mar 13, 2025
bec14ad
packages/cli/src/__tests__/wrapper.test.ts (WIP)
tatomyr Mar 13, 2025
1aa5dbe
packages/cli/src/auth/__tests__/device-flow.test.ts (WIP)
tatomyr Mar 13, 2025
ccf9f9d
packages/cli/src/reunite/commands/__tests__/push-status.test.ts (WIP)
tatomyr Mar 13, 2025
eb03e4e
packages/cli/src/__tests__/commands/bundle.test.ts (WIP)
tatomyr Mar 13, 2025
20f2e8a
packages/cli/src/__tests__/commands/join.test.ts (WIP)
tatomyr Mar 14, 2025
f5c0d77
packages/cli/src/auth/__tests__/oauth-client.test.ts (WIP)
tatomyr Mar 14, 2025
e7bfd71
packages/cli/src/__tests__/commands/build-docs.test.ts (WIP)
tatomyr Mar 14, 2025
ed222f8
remove __mocks__
tatomyr Mar 14, 2025
954e6ec
remove .only
tatomyr Mar 14, 2025
45a1bc0
Update vitest.config.e2e.ts
tatomyr Mar 14, 2025
4b6466b
cleanup cli tests
tatomyr Mar 15, 2025
8ae6375
remove test artifacts
tatomyr Mar 15, 2025
8cdf89a
update engines
tatomyr Mar 17, 2025
b37eb90
fix types in tests
tatomyr Mar 17, 2025
5a185d8
update unit tests configiration
tatomyr Mar 17, 2025
7470dfc
update unit tests config
tatomyr Mar 17, 2025
917de87
put the jest config back for a while
tatomyr Mar 17, 2025
db47c12
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: miscellaneous/resolve-refs-in-prep…
andriimredocly Mar 16, 2025
760816c
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: miscellaneous/resolve-plugins/snap…
andriimredocly Mar 16, 2025
46d56e0
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: miscellaneous/apply-per-api-decora…
andriimredocly Mar 16, 2025
09c2f9e
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: lint/skip-rules/snapshot.js
andriimredocly Mar 16, 2025
44a733e
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: bundle/discriminator-mapping/snaps…
andriimredocly Mar 16, 2025
9aaa45e
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: bundle/bundle-description-long/sna…
andriimredocly Mar 16, 2025
05bd7c0
RESOLVE_MULTI_EXPORT_IN_SNAPSHOT:: bundle/bundle-description-derefere…
andriimredocly Mar 16, 2025
a0d7f2b
MIGRATION_PREPARATION:: exclude __tests__/**/*snapshot*.js from prettier
andriimredocly Mar 16, 2025
746add3
MIGRATION_PREPARATION:: unify getting results from cli
andriimredocly Mar 16, 2025
d744efc
MIGRATION_PREPARATION:: sort snaphost generation logic to be compatib…
andriimredocly Mar 16, 2025
b3d75b0
MIGRATION:: stats
andriimredocly Mar 16, 2025
4618bd1
MIGRATION:: build-docs
andriimredocly Mar 16, 2025
b651565
MIGRATION:: miscellaneous
andriimredocly Mar 16, 2025
af86603
MIGRATION:: with metadata
andriimredocly Mar 16, 2025
74017bc
MIGRATION:: bundle with long description
andriimredocly Mar 16, 2025
21a4b05
MIGRATION:: bundle with option: dereferenced
andriimredocly Mar 16, 2025
ab6608a
MIGRATION:: bundle with option in config: remove-unused-components
andriimredocly Mar 16, 2025
e1f2da1
MIGRATION:: bundle with option: remove-unused-components
andriimredocly Mar 16, 2025
6c62a82
MIGRATION:: bundle
andriimredocly Mar 17, 2025
c4b37b0
MIGRATION:: join
andriimredocly Mar 17, 2025
665a116
MIGRATION:: split
andriimredocly Mar 17, 2025
b57c97d
MIGRATION:: lint-config
andriimredocly Mar 17, 2025
ac1c222
MIGRATION:: check-config
andriimredocly Mar 17, 2025
b18347a
MIGRATION:: zero-config
andriimredocly Mar 17, 2025
8af6756
MIGRATION:: lint
andriimredocly Mar 17, 2025
fcebc96
POST_MIGRATION:: add __tests__/commands to e2e vitest config
andriimredocly Mar 17, 2025
01bda8f
Run E2E with vitest only
andriimredocly Mar 17, 2025
e0bfc4b
Fix typecheck in E2E
andriimredocly Mar 17, 2025
7985053
fix rebilly smoke test
andriimredocly Mar 17, 2025
9b98dc5
delete unused jest toMatchSpecificSnapshot mock, fix node imports
andriimredocly Mar 17, 2025
1a0fbc3
add fixme for quotes fix
andriimredocly Mar 18, 2025
63d1b9e
use single vitest config for all suites
andriimredocly Mar 18, 2025
ce46e04
update tsconfigs
tatomyr Mar 18, 2025
d0b7e43
add unit-test code coverage
andriimredocly Mar 19, 2025
8b5a350
fix tsconfigs
tatomyr Mar 19, 2025
91974b8
fix browser env
tatomyr Mar 19, 2025
248fc40
remove jest leftovers
tatomyr Mar 19, 2025
7b3e97e
unskip resolve-plugins test and update contrib guide
tatomyr Mar 19, 2025
a43bbce
update the contrib guide
tatomyr Mar 19, 2025
553a76e
fix getConfig: removed unused mock as the test tests other scenario
andriimredocly Mar 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 1 addition & 7 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ jobs:
with:
node-version: 20
cache: 'npm'
- name: Coverage Report
uses: artiomtr/jest-coverage-report-action@v2.0.8
continue-on-error: true
with:
skip-step: none
annotations: none
test-script: npm run jest
# FIXME: add vitest coverage report

code-style-check:
runs-on: ubuntu-latest
Expand Down
Empty file modified .husky/pre-commit
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ packages/core/src/rules/__tests__/fixtures/invalid-yaml.yaml
packages/respect-core/src/modules/runtime-expressions/abnf-parser.js
benchmark/api-definitions/
LICENSE.md
__tests__/**/*snapshot*.js
33 changes: 20 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Before submitting a pull request, please make sure the following is done:

## Development setup

[Node.js](http://nodejs.org) at v18.17.0+ and NPM v10.8.2+ are required.
[Node.js](http://nodejs.org) at v22.13.0+ and NPM v10.9.2+ are required.

After forking the repo, run:

Expand All @@ -47,7 +47,7 @@ npm install # or npm i

### Commonly used NPM scripts

To compile the code, run `npm run compile`. To do that on the fly, run `npm run watch` in a separate thread.
To compile the code, run `npm run compile`.

To run a specific CLI command, use `npm run cli`, e.g. `npm run cli -- lint resources/museum.yaml --format=stylish`.
Please notice that the extra `--` is required to pass arguments to the CLI rather than to NPM itself.
Expand Down Expand Up @@ -170,18 +170,18 @@ The application maintains the following exit codes.

## Tests

When running tests, make sure the code is compiled (`npm run compile` or `npm run watch`).
When running tests, make sure the code is compiled (`npm run compile`).
Having `redocly.yaml` in the root of the project affects the unit tests, and console logs affect the e2e tests, so make sure to get rid of both before running tests.
Run `npm test` to start both unit and e2e tests (and additionally typecheck the code).

### Unit tests

Run unit tests with this command: `npm run unit`.

Unit tests in the **cli** package are sensitive to top-level configuration file (**redocly.yaml**).

To run tests from a single file, run: `npm run unit -- <path/to/your/file.test.ts>`
To run a specific test, use this command: `npm run unit -- -t 'Test name'`.
To run tests in watch mode, run: `npm run unit:watch`
To run single file in watch mode, run: `npm run unit:watch -- <path/to/your/file.test.ts>`
To update snapshots, run `npm run unit -- -u`.

To get coverage per package run `npm run coverage:cli` or `npm run coverage:core`.
Expand All @@ -196,6 +196,16 @@ To update snapshots, run `npm run e2e -- -u`.

If you made any changes, make sure to compile the code before running the tests.

The e2e tests are written and run with [Vitest](https://vitest.dev/).
Most of them are encapsulated inside the `commands.test.ts` file.
However, when adding new e2e tests, it's best to follow the approach of the `respect` command tests.

### Smoke tests

Smokes are for testing the CLI in different environments.

To run them locally, please follow the steps described in the smoke GitHub actions: [smoke](.github/workflows/smoke.yaml), [smoke-plugins](.github/workflows/smoke-plugins.yaml), [smoke-rebilly](.github/workflows/smoke-rebilly.yaml).

### Performance benchmark

To run the performance benchmark locally, you should have `hyperfine` (v1.16.1+) installed on your machine.
Expand All @@ -209,19 +219,18 @@ You might need to adjust the CLI versions that need to be tested in the `benchma

Copy link
Collaborator Author

@tatomyr tatomyr Mar 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be updated.

## Project structure

- **`__mocks__`**: contains basic mocks for e2e tests.
- **`__tests__`**: contains e2e and smoke tests.

- **`__tests__`**: contains e2e tests. The e2e tests are written and run with [Jest](https://jestjs.io/).
- **`benchmark`**: contains the performance benchmark. <!-- TODO: move it under the __tests__ folder -->

- **`docs`**: contains the documentation source files. When changes to the documentation are merged, they automatically get published on the [Redocly docs website](https://redocly.com/docs/cli/).

- **`packages`**: contains the source code. Сonsists of two packages - CLI and core. The codebase is written in Typescript.
- **`packages`**: contains the source code. It consists of three packages - CLI, core, and respect-core. The codebase is written in Typescript.

- **`packages/cli`**: contains Redocly CLI commands and utils. More details [here](../packages/cli/README.md).

- **`packages/cli/src`**: contains CLI package source code.

- **`packages/cli/src/__mocks__`**: contains basic mocks for unit tests.
- **`packages/cli/src/__tests__`**: contains unit tests.
- **`packages/cli/src/commands`**: contains CLI commands functions.

Expand All @@ -231,12 +240,10 @@ You might need to adjust the CLI versions that need to be tested in the `benchma
- **`packages/cli/core`**: contains core package source code.

- **`packages/core/src/__tests__`**: contains unit tests.
- **`packages/core/src/benchmark`**: contains basic perf benchmark. Not fully ready yet.
- **`packages/core/src/config`**: contains the base configuration options.
- **`packages/core/src/decorators`**: contains the built-in [decorators](../docs/resources/built-in-decorators.md) code.
- **`packages/core/src/format`**: contains the format options.
- **`packages/core/src/js-yaml`**: contains the [JS-YAML](https://www.npmjs.com/package/js-yaml) based functions.
<!-- - **`packages/core/src/redocly`**: contains the Redocly API registry integration setup. FIXME: update the structure description -->
- **`packages/core/src/rules`**: contains the built-in [rules](../docs/resources/built-in-rules.md) code.
- **`packages/core/src/types`**: contains the common types for several OpenAPI versions.
- **`packages/core/src/typings`**: contains the common Typescript typings.
Expand Down Expand Up @@ -266,7 +273,7 @@ Merge the PR and cut a release according to the [Release flow](#release-flow).
To release an experimental version to the **NPM** registry, follow these steps:

1. Create a new PR to **main**.
2. Add the `snapshot` label to the PR. This creates a new PR with to the `snapshot` branch (which is a copy of the `main` branch).
3. Merging the second PR triggers release to the **NPM** registry under the `snapshot` tag.
2. Add the `snapshot` label to the PR.
This triggers a release of the current branch changes to the **NPM** registry under the `snapshot` tag.

The released version can be installed with `npm install @redocly/cli@snapshot`.
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E build-docs build docs with config option 1`] = `
Found nested/redocly.yaml and using theme.openapi options
Prerendering docs

🎉 bundled successfully in: nested/redoc-static.html (36 KiB) [⏱ <test>ms].


`;
5 changes: 0 additions & 5 deletions __tests__/build-docs/simple-build-docs/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E build-docs simple build-docs 1`] = `
Found undefined and using theme.openapi options
Prerendering docs

🎉 bundled successfully in: redoc-static.html (330 KiB) [⏱ <test>ms].


`;
5 changes: 0 additions & 5 deletions __tests__/bundle/async3/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle async3 1`] = `
info:
title: Account Service
version: 1.0.0
Expand Down Expand Up @@ -56,5 +53,3 @@ operations:

bundling simple.yml...
📦 Created a bundle for simple.yml at stdout <test>ms.

`;
5 changes: 0 additions & 5 deletions __tests__/bundle/bundle-anchor/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle-anchor 1`] = `
openapi: 3.1.0
paths:
/test-api:
Expand Down Expand Up @@ -30,5 +27,3 @@ components: {}

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.

`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle-arazzo-valid-test-description 1`] = `
info:
title: Redocly Museum API Tickets
description: A part of imaginary, but delightful Museum API for interacting with museum services and information. Built with love by Redocly.
Expand Down Expand Up @@ -36,5 +33,3 @@ workflows:

bundling museum.yaml...
📦 Created a bundle for museum.yaml at stdout <test>ms.

`;
47 changes: 0 additions & 47 deletions __tests__/bundle/bundle-description-dereferenced/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle-description-dereferenced 1`] = `
openapi: 3.1.0
security: []
paths:
Expand Down Expand Up @@ -38,47 +35,3 @@ components:

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.

`;

exports[`E2E bundle with option: dereferenced description should not be from $ref 1`] = `
openapi: 3.1.0
security: []
paths:
/users:
post:
summary: user
description: User.
operationId: createUser
responses:
'200':
description: OK
requestBody:
description: Updated user object
content:
application/json:
schema:
description: Names (specific)
type: object
properties: &ref_0
oneName:
description: One name (specific).
type: string
otherName:
description: Other name (specific).
type: string
required: true
components:
schemas:
Name:
type: string
description: Generic Name.
Names:
type: object
description: names description
properties: *ref_0

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.

`;
38 changes: 38 additions & 0 deletions __tests__/bundle/bundle-description-dereferenced/snapshot_2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
openapi: 3.1.0
security: []
paths:
/users:
post:
summary: user
description: User.
operationId: createUser
responses:
'200':
description: OK
requestBody:
description: Updated user object
content:
application/json:
schema:
description: Names (specific)
type: object
properties: &ref_0
oneName:
description: One name (specific).
type: string
otherName:
description: Other name (specific).
type: string
required: true
components:
schemas:
Name:
type: string
description: Generic Name.
Names:
type: object
description: names description
properties: *ref_0

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.
28 changes: 0 additions & 28 deletions __tests__/bundle/bundle-description-long/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle-description-long 1`] = `
openapi: 3.1.0
info:
version: 1.0.0
Expand All @@ -20,28 +17,3 @@ components: {}

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.

`;

exports[`E2E bundle with long description description should not be in folded mode 1`] = `
openapi: 3.1.0
info:
version: 1.0.0
title: Example.com
termsOfService: https://example.com/terms/
contact:
email: contact@example.com
url: http://example.com/contact
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
description: |
first line loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
second line exists
security: []
components: {}

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.

`;
19 changes: 19 additions & 0 deletions __tests__/bundle/bundle-description-long/snapshot_2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
openapi: 3.1.0
info:
version: 1.0.0
title: Example.com
termsOfService: https://example.com/terms/
contact:
email: contact@example.com
url: http://example.com/contact
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
description: |
first line loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong
second line exists
security: []
components: {}

bundling test.yaml...
📦 Created a bundle for test.yaml at stdout <test>ms.
5 changes: 0 additions & 5 deletions __tests__/bundle/bundle-external-value/snapshot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle-external-value 1`] = `
openapi: 3.1.0
info:
version: 1.0.0
Expand Down Expand Up @@ -55,5 +52,3 @@ Error was generated by the bundler rule.


❌ Errors encountered while bundling test-wrong-examples.yaml: bundle not created (use --force to ignore errors).

`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle bundle should NOT be invoked IF no positional apis provided AND --output specified 1`] = `

index.ts bundle [apis...]

Expand Down Expand Up @@ -29,5 +26,3 @@ Options:
[choices: "warn", "error", "off"] [default: "warn"]

At least one inline API must be specified when using --output.

`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle with option in config: remove-unused-components oas2-without-option: shouldn't remove unused components 1`] = `
swagger: '2.0'
host: api.instagram.com
paths:
Expand Down Expand Up @@ -40,5 +37,3 @@ securityDefinitions:

bundling openapi.yaml...
📦 Created a bundle for openapi.yaml at stdout <test>ms.

`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle with option in config: remove-unused-components oas2: should remove unused components 1`] = `
swagger: '2.0'
host: api.instagram.com
paths:
Expand All @@ -17,5 +14,3 @@ definitions:
bundling openapi.yaml...
📦 Created a bundle for openapi.yaml at stdout <test>ms.
🧹 Removed 4 unused components.

`;
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`E2E bundle with option in config: remove-unused-components oas3-without-option: shouldn't remove unused components 1`] = `
openapi: 3.1.0
paths:
/store/order:
Expand Down Expand Up @@ -55,5 +52,3 @@ components:

bundling openapi.yaml...
📦 Created a bundle for openapi.yaml at stdout <test>ms.

`;
Loading
Loading