Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test esm #1662

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

chore: test esm #1662

wants to merge 1 commit into from

Conversation

tatomyr
Copy link
Contributor

@tatomyr tatomyr commented Aug 13, 2024

What/Why/How?

Testing switch from CommonJS -> ESM.

Issues:

  • build-docs doesn't work because redoc imports openapi-core
  • jest is not configured
  • no webpack support

Reference

Testing

Screenshots (optional)

Check yourself

  • Code changed? - Tested with redoc/reference-docs/workflows (internal)
  • All new/updated code is covered with tests
  • New package installed? - Tested in different environments (browser/node)

Security

  • Security impact of change has been considered
  • Code follows company security practices and guidelines

Copy link

changeset-bot bot commented Aug 13, 2024

⚠️ No Changeset found

Latest commit: e9f48ec

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Aug 13, 2024

Command Mean [ms] Min [ms] Max [ms] Relative
redocly lint packages/core/src/benchmark/benches/rebilly.yaml 977.2 ± 11.2 963.6 992.8 1.09 ± 0.02
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml 897.5 ± 17.0 868.2 917.0 1.00

Copy link
Contributor

github-actions bot commented Aug 13, 2024

Coverage report

❌ An unexpected error occurred. For more details, check console

Error: The process '/opt/hostedtoolcache/node/20.16.0/x64/bin/npm' failed with exit code 1
St.
Category Percentage Covered / Total
🔴 Statements
0% (-77.5% 🔻)
0/3365
🔴 Branches
0% (-65.99% 🔻)
0/1936
🔴 Functions
0% (-71.38% 🔻)
0/665
🔴 Lines
0% (-77.71% 🔻)
0/3203
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 cli/src/types.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴 core/src/env.ts
0% (-100% 🔻)
0% (-85.71% 🔻)
100%
0% (-100% 🔻)
🔴 cli/src/wrapper.ts
0% (-100% 🔻)
0% (-58.82% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / oas-types.ts
0% (-94.55% 🔻)
0% (-87.5% 🔻)
0% (-100% 🔻)
0% (-94.55% 🔻)
🔴 core/src/output.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / ref-utils.ts
0% (-88.89% 🔻)
0% (-69.57% 🔻)
0% (-86.67% 🔻)
0% (-90.91% 🔻)
🔴 core/src/resolve.ts
0% (-95% 🔻)
0% (-90.48% 🔻)
0% (-100% 🔻)
0% (-94.77% 🔻)
🔴 core/src/lint.ts
0% (-95.74% 🔻)
0% (-87.5% 🔻)
0% (-100% 🔻)
0% (-95.65% 🔻)
🔴 core/src/bundle.ts
0% (-79.27% 🔻)
0% (-69.67% 🔻)
0% (-94.12% 🔻)
0% (-79.27% 🔻)
🔴 core/src/walk.ts
0% (-97.93% 🔻)
0% (-97.94% 🔻)
0% (-100% 🔻)
0% (-97.81% 🔻)
🔴
... / getCommandNameFromArgs.ts
0% (-50% 🔻)
0% 0%
0% (-50% 🔻)
🔴
... / js-utils.ts
0% (-86.67% 🔻)
0% (-85.71% 🔻)
0% (-100% 🔻)
0% (-92.86% 🔻)
🔴
... / spinner.ts
0% (-95.65% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-95.65% 🔻)
🔴
... / visitors.ts
0% (-92.94% 🔻)
0% (-90.74% 🔻)
0% (-90% 🔻)
0% (-92.5% 🔻)
🔴
... / all.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / builtIn.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / load.ts
0% (-88.33% 🔻)
0% (-85% 🔻)
0% (-100% 🔻)
0% (-89.29% 🔻)
🔴
... / minimal.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / recommended-strict.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / recommended.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / rules.ts
0% (-86.67% 🔻)
0% (-83.33% 🔻)
0% (-80% 🔻)
0% (-92.86% 🔻)
🔴
... / config.ts
0% (-65.36% 🔻)
0% (-68.91% 🔻)
0% (-64.71% 🔻)
0% (-66.04% 🔻)
🔴
... / config-resolvers.ts
0% (-84.18% 🔻)
0% (-67.23% 🔻)
0% (-100% 🔻)
0% (-84.97% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100%
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / utils.ts
0% (-97.66% 🔻)
0% (-95.56% 🔻)
0% (-100% 🔻)
0% (-97.6% 🔻)
🔴
... / domains.ts
0% (-100% 🔻)
0% (-77.78% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / codeframes.ts
0% (-95.08% 🔻)
0% (-87.72% 🔻)
0% (-100% 🔻)
0% (-97.06% 🔻)
🔴
... / no-unresolved-refs.ts
0% (-72.22% 🔻)
0% (-80% 🔻)
0% (-75% 🔻)
0% (-73.33% 🔻)
🔴
... / index.ts
0% (-62.12% 🔻)
0% (-64.29% 🔻)
0% (-69.57% 🔻)
0% (-62.12% 🔻)
🔴
... / arazzo.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / utils.ts
0% (-94.67% 🔻)
0% (-89.47% 🔻)
0% (-100% 🔻)
0% (-94.29% 🔻)
🔴
... / asyncapi3.ts
0% (-55% 🔻)
0% (-14.29% 🔻)
0% (-25% 🔻)
0% (-55% 🔻)
🔴
... / index.ts
0% (-95.12% 🔻)
0% (-90.48% 🔻)
0% (-100% 🔻)
0% (-95.12% 🔻)
🔴
... / oas2.ts
0% (-58.21% 🔻)
0% (-25% 🔻)
0% (-55.56% 🔻)
0% (-58.21% 🔻)
🔴
... / asyncapi2.ts
0% (-87.36% 🔻)
0% (-17.86% 🔻)
0% (-35.71% 🔻)
0% (-87.36% 🔻)
🔴
... / oas3.ts
0% (-71.83% 🔻)
0% (-22.73% 🔻)
0% (-55.56% 🔻)
0% (-71.83% 🔻)
🔴
... / oas3_1.ts
0% (-53.33% 🔻)
0% (-25% 🔻)
0% (-75% 🔻)
0% (-53.33% 🔻)
🔴
... / api-keys.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / domains.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / utils.ts
0% (-100% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-96% 🔻)
0% (-50% 🔻)
0% (-100% 🔻)
0% (-95.83% 🔻)
🔴
... / redocly-yaml.ts
0% (-83.46% 🔻)
0% (-50% 🔻)
0% (-71.43% 🔻)
0% (-83.06% 🔻)
🔴
... / types.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / info-description-override.ts
0% (-33.33% 🔻)
0% 0%
0% (-25% 🔻)
🔴
... / info-override.ts
0% (-28.57% 🔻)
0% 0%
0% (-16.67% 🔻)
🔴
... / operation-description-override.ts
0% (-23.08% 🔻)
0% 0%
0% (-18.18% 🔻)
🔴
... / registry-dependencies.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / media-type-examples-override.ts
0% (-90.63% 🔻)
0% (-76.47% 🔻)
0% (-100% 🔻)
0% (-90.32% 🔻)
🔴
... / tag-description-override.ts
0% (-30% 🔻)
0% 0%
0% (-22.22% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / remove-x-internal.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / remove-unused-components.ts
0% (-86.11% 🔻)
0% (-87.5% 🔻)
0% (-72.73% 🔻)
0% (-88.24% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / remove-unused-components.ts
0% (-95.12% 🔻)
0% (-88.89% 🔻)
0% (-100% 🔻)
0% (-97.44% 🔻)
🔴
... / channels-kebab-case.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / channels-kebab-case.ts
0% (-100% 🔻)
0% (-80% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-channel-trailing-slash.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-channel-trailing-slash.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / boolean-parameter-prefixes.ts
0% (-100% 🔻)
0% (-85.71% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / request-mime-type.ts
0% (-50% 🔻)
100% 0%
0% (-40% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / response-contains-property.ts
0% (-92.31% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / response-mime-type.ts
0% (-50% 🔻)
100% 0%
0% (-40% 🔻)
🔴
... / info-contact.ts
0% (-83.33% 🔻)
0%
0% (-100% 🔻)
0% (-80% 🔻)
🔴
... / info-license.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / stats.ts
0% (-10.53% 🔻)
0% 0%
0% (-5.56% 🔻)
🔴
... / info-license-url.ts
0% (-100% 🔻)
100%
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-ambiguous-paths.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-enum-type-mismatch.ts
0% (-95.65% 🔻)
0% (-92.31% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-http-verbs-in-paths.ts
0% (-29.41% 🔻)
0%
0% (-33.33% 🔻)
0% (-28.57% 🔻)
🔴
... / no-identical-paths.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-invalid-schema-examples.ts
0% (-80% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-77.78% 🔻)
🔴
... / no-invalid-parameter-examples.ts
0% (-72.73% 🔻)
0% (-60% 🔻)
0% (-100% 🔻)
0% (-70% 🔻)
🔴
... / no-path-trailing-slash.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-2xx-response.ts
0% (-100% 🔻)
0% (-80% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-required-schema-properties-undefined.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-4xx-response.ts
0% (-100% 🔻)
0% (-60% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-description.ts
0% (-80% 🔻)
100%
0% (-50% 🔻)
0% (-75% 🔻)
🔴
... / operation-operationId-url-safe.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-operationId-unique.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-operationId.ts
0% (-100% 🔻)
100%
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-singular-tag.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / operation-summary.ts
0% (-80% 🔻)
100%
0% (-50% 🔻)
0% (-75% 🔻)
🔴
... / operation-parameters-unique.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / parameter-description.ts
0% (-42.86% 🔻)
0%
0% (-50% 🔻)
0% (-33.33% 🔻)
🔴
... / path-declaration-must-exist.ts
0% (-60% 🔻)
0%
0% (-50% 🔻)
0% (-50% 🔻)
🔴
... / path-excludes-patterns.ts
0% (-27.27% 🔻)
0%
0% (-33.33% 🔻)
0% (-22.22% 🔻)
🔴
... / operation-tag-defined.ts
0% (-50% 🔻)
0% (-50% 🔻)
0% (-75% 🔻)
0% (-42.86% 🔻)
🔴
... / path-not-include-query.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / path-http-verbs-order.ts
0% (-93.33% 🔻)
0% (-80% 🔻)
0% (-100% 🔻)
0% (-91.67% 🔻)
🔴
... / path-params-defined.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / path-segment-plural.ts
0% (-35.29% 🔻)
0%
0% (-50% 🔻)
0% (-33.33% 🔻)
🔴
... / paths-kebab-case.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / required-string-property-missing-min-length.ts
0% (-25% 🔻)
0%
0% (-25% 🔻)
0% (-18.18% 🔻)
🔴
... / response-contains-header.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / scalar-property-missing-example.ts
0% (-80.95% 🔻)
0% (-80% 🔻)
0% (-75% 🔻)
0% (-84.21% 🔻)
🔴
... / spec-strict-refs.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / security-defined.ts
0% (-96.55% 🔻)
0% (-92.31% 🔻)
0% (-100% 🔻)
0% (-96.3% 🔻)
🔴
... / tag-description.ts
0% (-100% 🔻)
100%
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / tags-alphabetical.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / array-parameter-serialization.ts
0% (-100% 🔻)
0% (-92.86% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / boolean-parameter-prefixes.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-100% 🔻)
100% 100%
0% (-100% 🔻)
🔴
... / spec.ts
0% (-92.41% 🔻)
0% (-81.82% 🔻)
0% (-100% 🔻)
0% (-91.78% 🔻)
🔴
... / no-empty-servers.ts
0% (-87.5% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-85.71% 🔻)
🔴
... / no-example-value-and-externalValue.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / component-name-unique.ts
0% (-96.77% 🔻)
0% (-81.82% 🔻)
0% (-100% 🔻)
0% (-98.33% 🔻)
🔴
... / no-server-example.com.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-invalid-media-type-examples.ts
0% (-95.65% 🔻)
0% (-86.67% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-server-trailing-slash.ts
0% (-85.71% 🔻)
0% (-75% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-undefined-server-variable.ts
0% (-92.86% 🔻)
0% (-87.5% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-server-variables-empty-enum.ts
0% (-90.24% 🔻)
0% (-91.3% 🔻)
0% (-100% 🔻)
0% (-90.91% 🔻)
🔴
... / operation-4xx-problem-details-rfc7807.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / no-unused-components.ts
0% (-95% 🔻)
0% (-83.33% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / request-mime-type.ts
0% (-57.14% 🔻)
100%
0% (-20% 🔻)
0% (-50% 🔻)
🔴
... / response-contains-property.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / response-mime-type.ts
0% (-57.14% 🔻)
100%
0% (-20% 🔻)
0% (-50% 🔻)
🔴
... / spec-components-invalid-map-name.ts
0% (-66.67% 🔻)
0% (-100% 🔻)
0% (-54.55% 🔻)
0% (-64.29% 🔻)
🔴
... / filter-in.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / filter-helper.ts
0% (-97.83% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-97.67% 🔻)
🔴
... / filter-out.ts
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
0% (-100% 🔻)
🔴
... / index.ts
0% (-92.86% 🔻)
0% (-66.67% 🔻)
0% (-100% 🔻)
0% (-92.31% 🔻)
🔴
... / asserts.ts
0% (-80.25% 🔻)
0% (-77.17% 🔻)
0% (-84.62% 🔻)
0% (-87.14% 🔻)
🔴
... / utils.ts
0% (-67.2% 🔻)
0% (-46.59% 🔻)
0% (-44.44% 🔻)
0% (-68.91% 🔻)

Test suite run failed

Failed tests: 0/0. Failed suites: 108/108.
  ● Test suite failed to run

    Cannot find module '../lint.js' from 'packages/core/src/__tests__/lint.test.ts'

      2 | import { outdent } from 'outdent';
      3 |
    > 4 | import { lintFromString, lintConfig, lintDocument, lint } from '../lint.js';
        | ^
      5 | import { BaseResolver } from '../resolve.js';
      6 | import { createConfig, loadConfig } from '../config/load.js';
      7 | import { parseYamlToDocument, replaceSourceWithRef, makeConfig } from '../../__tests__/utils.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/lint.test.ts:4:1)


  ● Test suite failed to run

    Cannot find module '../lint.js' from 'packages/core/src/__tests__/walk.test.ts'

      2 | import each from 'jest-each';
      3 | import * as path from 'path';
    > 4 | import { lintDocument } from '../lint.js';
        | ^
      5 | import {
      6 |   parseYamlToDocument,
      7 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/walk.test.ts:4:1)


  ● Test suite failed to run

    Cannot find module '../../../../ref-utils.js' from 'packages/core/src/rules/common/assertions/__tests__/asserts.test.ts'

    > 1 | import { Location } from '../../../../ref-utils.js';
        | ^
      2 | import { Source } from '../../../../resolve.js';
      3 | import { AssertionFnContext, Asserts, asserts, buildAssertCustomFunction } from '../asserts.js';
      4 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/assertions/__tests__/asserts.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/oas3/__tests__/component-name-unique.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYamlToDocument, replaceSourceWithRef } from '../../../../__tests__/utils.js';
        | ^
      3 | import { lintDocumentForTest } from './utils/lint-document-for-test.js';
      4 |
      5 | describe('Oas3 component-name-unique', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/component-name-unique.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-invalid-media-type-examples.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-invalid-media-type-examples.test.ts:2:1)


  ● Test suite failed to run

    packages/cli/src/__tests__/utils.test.ts:26:35 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    26 import { blue, red, yellow } from 'colorette';
                                         ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../../../__tests__/utils.js' from 'packages/core/src/decorators/__tests__/media-type-examples-override.test.ts'

    > 1 | import { makeConfig, parseYamlToDocument, yamlSerializer } from '../../../__tests__/utils.js';
        | ^
      2 | import { outdent } from 'outdent';
      3 | import { bundleDocument } from '../../bundle.js';
      4 | import { BaseResolver } from '../../resolve.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/__tests__/media-type-examples-override.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../push-status.js' from 'packages/cli/src/cms/commands/__tests__/push-status.test.ts'

    > 1 | import { handlePushStatus } from '../push-status.js';
        | ^
      2 | import { PushResponse } from '../../api/types.js';
      3 |
      4 | const remotes = {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/cms/commands/__tests__/push-status.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/spec.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/spec.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../logger.js' from 'packages/core/src/config/__tests__/config-resolvers.test.ts'

    > 1 | import { colorize } from '../../logger.js';
        | ^
      2 | import { Asserts, asserts } from '../../rules/common/assertions/asserts.js';
      3 | import { resolveStyleguideConfig, resolveApis, resolveConfig } from '../config-resolvers.js';
      4 | import recommended from '../recommended.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/config/__tests__/config-resolvers.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-required-schema-properties-undefined.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-required-schema-properties-undefined.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../format/codeframes.js' from 'packages/core/src/__tests__/codeframes.test.ts'

      1 | import { outdent } from 'outdent';
      2 |
    > 3 | import { getLineColLocation, getCodeframe } from '../format/codeframes.js';
        | ^
      4 | import { LocationObject } from '../walk.js';
      5 | import { Source } from '../resolve.js';
      6 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/codeframes.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/response-contains-property.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/response-contains-property.test.ts:2:1)


  ● Test suite failed to run

    packages/cli/src/__tests__/commands/push.test.ts:6:24 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    6 import { yellow } from 'colorette';
                             ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/response-contains-header.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/response-contains-header.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../resolve.js' from 'packages/core/src/__tests__/resolve.test.ts'

      2 | import * as path from 'path';
      3 |
    > 4 | import { resolveDocument, BaseResolver, Document } from '../resolve.js';
        | ^
      5 | import { parseYamlToDocument } from '../../__tests__/utils.js';
      6 | import { Oas3Types } from '../types/oas3.js';
      7 | import { normalizeTypes } from '../types/index.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/resolve.test.ts:4:1)


  ● Test suite failed to run

    Cannot find module '../bundle.js' from 'packages/core/src/__tests__/bundle.test.ts'

      2 | import * as path from 'path';
      3 |
    > 4 | import { bundleDocument, bundle, bundleFromString } from '../bundle.js';
        | ^
      5 | import { parseYamlToDocument, yamlSerializer, makeConfig } from '../../__tests__/utils.js';
      6 | import {
      7 |   StyleguideConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/bundle.test.ts:4:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/servers.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { validateDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema', () => {
      5 |   it('should not report on valid Server Object', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/servers.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../load.js' from 'packages/core/src/config/__tests__/load.test.ts'

    > 1 | import { loadConfig, findConfig, getConfig, createConfig } from '../load.js';
        | ^
      2 | import { RedoclyClient } from '../../redocly/index.js';
      3 | import { Config } from '../config.js';
      4 | import { lintConfig } from '../../lint.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/config/__tests__/load.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../oas-types.js' from 'packages/core/src/config/__tests__/config.test.ts'

    > 1 | import { SpecVersion } from '../../oas-types.js';
        | ^
      2 | import { Config, StyleguideConfig } from '../config.js';
      3 | import { getMergedConfig } from '../utils.js';
      4 | import { doesYamlFileExist } from '../../utils.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/config/__tests__/config.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../push.js' from 'packages/cli/src/cms/commands/__tests__/push.test.ts'

      1 | import * as fs from 'fs';
      2 | import * as path from 'path';
    > 3 | import { handlePush } from '../push.js';
        | ^
      4 | import { ReuniteApiClient } from '../../api/index.js';
      5 |
      6 | const remotes = {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/cms/commands/__tests__/push.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../bundle.js' from 'packages/core/src/decorators/__tests__/remove-x-internal.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { bundleDocument } from '../../bundle.js';
        | ^
      3 | import { BaseResolver } from '../../resolve.js';
      4 | import { parseYamlToDocument, yamlSerializer, makeConfig } from '../../../__tests__/utils.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/__tests__/remove-x-internal.test.ts:2:1)


  ● Test suite failed to run

    packages/cli/src/__tests__/commands/join.test.ts:1:24 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    1 import { yellow } from 'colorette';
                             ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/info.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { validateDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema', () => {
      5 |   it('should report if the title of the API is empty ', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/info.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/spec/spec.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../../lint.js';
        | ^
      3 | import { parseYamlToDocument, replaceSourceWithRef } from '../../../../../__tests__/utils.js';
      4 | import {
      5 |   StyleguideConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/spec.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../bundle.js' from 'packages/core/src/decorators/__tests__/filter-out.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { bundleDocument } from '../../bundle.js';
        | ^
      3 | import { BaseResolver } from '../../resolve.js';
      4 | import { makeConfig, parseYamlToDocument, yamlSerializer } from '../../../__tests__/utils.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/__tests__/filter-out.test.ts:2:1)


  ● Test suite failed to run

    packages/cli/src/cms/api/__tests__/api.client.test.ts:6:22 - error TS2339: Property 'default' does not exist on type 'typeof fetch'.

    6 const fetch = _fetch.default;
                           ~~~~~~~


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas2/__tests__/spec/info.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema 2.0', () => {
      5 |   it('should report if the title of the API is empty ', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/spec/info.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/oas3/__tests__/spec-components-invalid-map-name.test.ts'

    > 1 | import { makeConfig, parseYamlToDocument } from '../../../../__tests__/utils.js';
        | ^
      2 | import { outdent } from 'outdent';
      3 | import { lintDocument } from '../../../lint.js';
      4 | import { BaseResolver } from '../../../resolve.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec-components-invalid-map-name.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../bundle.js' from 'packages/core/src/decorators/__tests__/filter-in.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { bundleDocument } from '../../bundle.js';
        | ^
      3 | import { BaseResolver } from '../../resolve.js';
      4 | import { makeConfig, parseYamlToDocument, yamlSerializer } from '../../../__tests__/utils.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/__tests__/filter-in.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/security-defined.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/security-defined.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/decorators/oas3/__tests__/remove-unused-components.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
        | ^
      3 | import { bundleDocument } from '../../../bundle.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/oas3/__tests__/remove-unused-components.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/oas3/__tests__/array-parameter-serialization.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import {
        | ^
      3 |   parseYamlToDocument,
      4 |   replaceSourceWithRef,
      5 |   makeConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/array-parameter-serialization.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/scalar-property-missing-example.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/scalar-property-missing-example.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../lint.js' from 'packages/core/src/rules/__tests__/no-unresolved-refs.test.ts'

      1 | import * as path from 'path';
      2 | import { outdent } from 'outdent';
    > 3 | import { lintDocument } from '../../lint.js';
        | ^
      4 | import { BaseResolver } from '../../resolve.js';
      5 | import { parseYamlToDocument, replaceSourceWithRef, makeConfig } from '../../../__tests__/utils.js';
      6 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/__tests__/no-unresolved-refs.test.ts:3:1)


  ● Test suite failed to run

    packages/cli/src/__tests__/commands/lint.test.ts:22:22 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    22 import { blue } from 'colorette';
                            ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../../../../ref-utils.js' from 'packages/core/src/rules/common/assertions/__tests__/utils.test.ts'

      1 | import { Assertion, AssertionDefinition } from '../index.js';
      2 | import { AssertionContext } from '../../../../config/index.js';
    > 3 | import { Location } from '../../../../ref-utils.js';
        | ^
      4 | import { Source } from '../../../../resolve.js';
      5 | import { isOrdered, buildVisitorObject, getIntersectionLength, runAssertion } from '../utils.js';
      6 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/assertions/__tests__/utils.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-4xx-response.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-4xx-response.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-enum-type-mismatch.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-enum-type-mismatch.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/paths.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { validateDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema', () => {
      5 |   it('should not report if Path object is valid ', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/paths.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../domains.js' from 'packages/core/src/redocly/__tests__/redocly-client.test.ts'

    > 1 | import { setRedoclyDomain } from '../domains.js';
        | ^
      2 | import { RedoclyClient } from '../index.js';
      3 |
      4 | jest.mock('node-fetch', () => ({

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/redocly/__tests__/redocly-client.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-empty-enum-servers.com.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-empty-enum-servers.com.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../utils.js' from 'packages/core/src/config/__tests__/utils.test.ts'

      1 | import type { DeprecatedInRawConfig, RawConfig, FlatRawConfig } from '../types.js';
    > 2 | import * as utils from '../utils.js';
        | ^
      3 |
      4 | const makeTestRawConfig = (
      5 |   apiStyleguideName: string,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/config/__tests__/utils.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/path-params-defined.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/path-params-defined.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/decorators/oas2/__tests__/remove-unused-components.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
        | ^
      3 | import { bundleDocument } from '../../../bundle.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/decorators/oas2/__tests__/remove-unused-components.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas2/__tests__/response-contains-header.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/response-contains-header.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-2xx-response.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-2xx-response.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas2/__tests__/spec/paths.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema', () => {
      5 |   it('should not report if Path object is valid ', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/spec/paths.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../utils.js' from 'packages/core/src/rules/__tests__/utils.test.ts'

    > 1 | import {
        | ^
      2 |   fieldNonEmpty,
      3 |   matchesJsonSchemaType,
      4 |   missingRequiredField,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/__tests__/utils.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/operation.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { validateDoc } from './utils.js';
        | ^
      3 |
      4 | it('should not report if summary field is valid', async () => {
      5 |   const source = outdent`

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/operation.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas2/__tests__/response-contains-property.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import { parseYamlToDocument, makeConfig } from '../../../../__tests__/utils.js';
      4 | import { BaseResolver } from '../../../resolve.js';
      5 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/response-contains-property.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../visitors.js' from 'packages/core/src/__tests__/normalizeVisitors.test.ts'

    > 1 | import {
        | ^
      2 |   BaseVisitor,
      3 |   NestedVisitObject,
      4 |   normalizeVisitors,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/normalizeVisitors.test.ts:1:1)


  ● Test suite failed to run

    packages/cli/src/commands/split/__tests__/index.test.ts:5:29 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    5 import { blue, green } from 'colorette';
                                  ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-parameters-unique.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-parameters-unique.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/operation-4xx-problem-details-rfc7807.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/operation-4xx-problem-details-rfc7807.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../utils.js' from 'packages/core/src/__tests__/utils.test.ts'

    > 1 | import {
        | ^
      2 |   pickObjectProps,
      3 |   omitObjectProps,
      4 |   slash,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/utils.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../__tests__/utils.js' from 'packages/core/src/__tests__/ref-utils.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYamlToDocument } from '../../__tests__/utils.js';
        | ^
      3 | import { parseRef, refBaseName } from '../ref-utils.js';
      4 | import { lintDocument } from '../lint.js';
      5 | import { StyleguideConfig } from '../config/index.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/ref-utils.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/async2/__tests__/channels-kebab-case.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/async2/__tests__/channels-kebab-case.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/async3/__tests__/channels-kebab-case.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/async3/__tests__/channels-kebab-case.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-unused-components.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-unused-components.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-path-trailing-slash.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-path-trailing-slash.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../format/format.js' from 'packages/core/src/__tests__/format.test.ts'

      1 | import { outdent } from 'outdent';
      2 |
    > 3 | import { formatProblems, getTotals } from '../format/format.js';
        | ^
      4 | import { LocationObject, NormalizedProblem } from '../walk.js';
      5 | import { Source } from '../resolve.js';
      6 |

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/format.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/tags-alphabetical.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/tags-alphabetical.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/oas3/__tests__/boolean-parameter-prefixes.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import {
        | ^
      3 |   parseYamlToDocument,
      4 |   replaceSourceWithRef,
      5 |   makeConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/boolean-parameter-prefixes.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module './../../__tests__/fixtures/config.js' from 'packages/cli/src/__mocks__/@redocly/openapi-core.ts'

    > 1 | import { ConfigFixture } from './../../__tests__/fixtures/config.js';
        | ^
      2 | import { firstDocument, secondDocument, thirdDocument } from '../documents.js';
      3 |
      4 | import type { Document } from '@redocly/openapi-core';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__mocks__/@redocly/openapi-core.ts:1:1)
      at Object.<anonymous> (packages/cli/src/__tests__/commands/bundle.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../utils/miscellaneous.js' from 'packages/cli/src/__tests__/wrapper.test.ts'

    > 1 | import { loadConfigAndHandleErrors, sendTelemetry } from '../utils/miscellaneous.js';
        | ^
      2 | import * as process from 'process';
      3 | import { commandWrapper } from '../wrapper.js';
      4 | import { handleLint } from '../commands/lint.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__tests__/wrapper.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/oas2/__tests__/boolean-parameter-prefixes.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import {
        | ^
      3 |   parseYamlToDocument,
      4 |   replaceSourceWithRef,
      5 |   makeConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/boolean-parameter-prefixes.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas2/__tests__/spec/operation.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDoc } from './utils.js';
        | ^
      3 |
      4 | describe('OpenAPI Schema 2.0', () => {
      5 |   it('should not report of a valid GET operation object', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/spec/operation.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-ambiguous-paths.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-ambiguous-paths.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/paths-kebab-case.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/paths-kebab-case.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-server-example.com.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-server-example.com.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/async2/__tests__/no-channel-trailing-slash.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/async2/__tests__/no-channel-trailing-slash.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/async3/__tests__/no-channel-trailing-slash.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/async3/__tests__/no-channel-trailing-slash.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/path-http-verbs-order.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/path-http-verbs-order.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-server-trailing-slash.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-server-trailing-slash.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../index.js' from 'packages/core/src/rules/common/assertions/__tests__/index.test.ts'

    > 1 | import { Assertions } from '../index.js';
        | ^
      2 |
      3 | const opts = {
      4 |   '0': {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/assertions/__tests__/index.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../../../__tests__/utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/referenceableScalars.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYamlToDocument, replaceSourceWithRef } from '../../../../../__tests__/utils.js';
        | ^
      3 | import { lintDocument } from '../../../../lint.js';
      4 | import { StyleguideConfig } from '../../../../index.js';
      5 | import { BaseResolver } from '../../../../resolve.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/referenceableScalars.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-operationId-unique.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-operationId-unique.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../__tests__/utils.js' from 'packages/core/src/rules/common/__tests__/spec-strict-refs.test.ts'

    > 1 | import {
        | ^
      2 |   makeConfig,
      3 |   parseYamlToDocument,
      4 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/spec-strict-refs.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/oas3/__tests__/no-example-value-and-externalValue.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/no-example-value-and-externalValue.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module './../../__tests__/fixtures/config.js' from 'packages/cli/src/__mocks__/@redocly/openapi-core.ts'

    > 1 | import { ConfigFixture } from './../../__tests__/fixtures/config.js';
        | ^
      2 | import { firstDocument, secondDocument, thirdDocument } from '../documents.js';
      3 |
      4 | import type { Document } from '@redocly/openapi-core';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__mocks__/@redocly/openapi-core.ts:1:1)
      at Object.<anonymous> (packages/cli/src/__tests__/commands/push-region.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../resolve.js' from 'packages/core/src/__tests__/resolve-http.test.ts'

      1 | import { outdent } from 'outdent';
      2 |
    > 3 | import { resolveDocument, BaseResolver } from '../resolve.js';
        | ^
      4 | import { parseYamlToDocument } from '../../__tests__/utils.js';
      5 | import { Oas3Types } from '../types/oas3.js';
      6 | import { normalizeTypes } from '../types/index.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/resolve-http.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-singular-tag.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-singular-tag.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../index.js' from 'packages/core/src/redocly/__tests__/domains.test.ts'

    > 1 | import { RedoclyClient } from '../../index.js';
        | ^
      2 | import { setRedoclyDomain, getRedoclyDomain, getDomains, AVAILABLE_REGIONS } from '../domains.js';
      3 |
      4 | describe('domains', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/redocly/__tests__/domains.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../utils.js' from 'packages/cli/src/cms/commands/__tests__/utils.test.ts'

    > 1 | import { retryUntilConditionMet } from '../utils.js';
        | ^
      2 |
      3 | jest.mock('@redocly/openapi-core', () => ({
      4 |   pause: jest.requireActual('@redocly/openapi-core').pause,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/cms/commands/__tests__/utils.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/tag-description.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/tag-description.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/path-not-include-query.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/path-not-include-query.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../commands/build-docs/index.js' from 'packages/cli/src/__tests__/commands/build-docs.test.ts'

      1 | import { createStore, loadAndBundleSpec } from 'redoc';
      2 | import { renderToString } from 'react-dom/server';
    > 3 | import { handlerBuildCommand } from '../../commands/build-docs/index.js';
        | ^
      4 | import { BuildDocsArgv } from '../../commands/build-docs/types.js';
      5 | import { getPageHTML } from '../../commands/build-docs/utils.js';
      6 | import { getFallbackApisOrExit } from '../../utils/miscellaneous.js';

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__tests__/commands/build-docs.test.ts:3:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/license-url.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/license-url.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../js-yaml/index.js' from 'packages/core/src/__tests__/js-yaml.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { parseYaml, stringifyYaml } from '../js-yaml/index.js';
        | ^
      3 |
      4 | const yaml = `
      5 |   emptyValue:

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/js-yaml.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-identical-paths.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-identical-paths.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/info-license.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/info-license.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-invalid-schema-examples.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-invalid-schema-examples.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/no-invalid-parameter-examples.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/no-invalid-parameter-examples.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../lint.js' from 'packages/core/src/rules/common/__tests__/operation-operationId-url-safe.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { lintDocument } from '../../../lint.js';
        | ^
      3 | import {
      4 |   parseYamlToDocument,
      5 |   replaceSourceWithRef,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/common/__tests__/operation-operationId-url-safe.test.ts:2:1)


  ● Test suite failed to run

    packages/core/src/__tests__/logger.test.ts:1:28 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    1 import * as colorette from 'colorette';
                                 ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../utils/spinner.js' from 'packages/cli/src/__tests__/spinner.test.ts'

    > 1 | import { Spinner } from '../utils/spinner.js';
        | ^
      2 | import * as process from 'process';
      3 |
      4 | jest.useFakeTimers();

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__tests__/spinner.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module './utils.js' from 'packages/core/src/rules/oas3/__tests__/spec/callbacks.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import { validateDoc } from './utils.js';
        | ^
      3 |
      4 | it('should not fail on valid callbacks object', async () => {
      5 |   const source = outdent`

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas3/__tests__/spec/callbacks.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../api-keys.js' from 'packages/cli/src/cms/api/__tests__/api-keys.test.ts'

    > 1 | import { getApiKeys } from '../api-keys.js';
        | ^
      2 | import * as fs from 'fs';
      3 |
      4 | describe('getApiKeys()', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/cms/api/__tests__/api-keys.test.ts:1:1)


  ● Test suite failed to run

    packages/core/src/__tests__/logger-browser.test.ts:5:28 - error TS7016: Could not find a declaration file for module 'colorette'. '/home/runner/work/redocly-cli/redocly-cli/node_modules/colorette/index.cjs' implicitly has an 'any' type.
      Try `npm i --save-dev @types/colorette` if it exists or add a new declaration (.d.ts) file containing `declare module 'colorette';`

    5 import * as colorette from 'colorette';
                                 ~~~~~~~~~~~


  ● Test suite failed to run

    Cannot find module '../load.js' from 'packages/core/src/config/__tests__/resolve-plugins.test.ts'

      1 | import * as path from 'path';
    > 2 | import { loadConfig } from '../load.js';
        | ^
      3 |
      4 | describe('resolving a plugin', () => {
      5 |   const configPath = path.join(__dirname, 'fixtures/plugin-config.yaml');

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/config/__tests__/resolve-plugins.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../../../../../__tests__/utils.js' from 'packages/core/src/rules/oas2/__tests__/spec/referenceableScalars.test.ts'

      1 | import { outdent } from 'outdent';
    > 2 | import {
        | ^
      3 |   parseYamlToDocument,
      4 |   replaceSourceWithRef,
      5 |   makeConfig,

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/rules/oas2/__tests__/spec/referenceableScalars.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../utils/fetch-with-timeout.js' from 'packages/cli/src/__tests__/fetch-with-timeout.test.ts'

      1 | import AbortController from 'abort-controller';
    > 2 | import fetchWithTimeout from '../utils/fetch-with-timeout.js';
        | ^
      3 | import nodeFetch from 'node-fetch';
      4 |
      5 | jest.mock('node-fetch');

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/__tests__/fetch-with-timeout.test.ts:2:1)


  ● Test suite failed to run

    Cannot find module '../redocly/index.js' from 'packages/core/src/__tests__/login.test.ts'

    > 1 | import { RedoclyClient } from '../redocly/index.js';
        | ^
      2 |
      3 | describe.skip('login', () => {
      4 |   it('should call login with setAccessTokens function', async () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/login.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../output.js' from 'packages/core/src/__tests__/output.test.ts'

    > 1 | import { output } from '../output.js';
        | ^
      2 |
      3 | describe('output', () => {
      4 |   it('should write all parsable data to stdout', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/output.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../domains.js' from 'packages/cli/src/cms/api/__tests__/domains.test.ts'

    > 1 | import { getDomain } from '../domains.js';
        | ^
      2 |
      3 | describe('getDomain()', () => {
      4 |   it('should return the domain from environment variable', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/cli/src/cms/api/__tests__/domains.test.ts:1:1)


  ● Test suite failed to run

    Cannot find module '../env.js' from 'packages/core/src/__tests__/utils-browser.test.ts'

      3 |  */
      4 |
    > 5 | import { isBrowser } from '../env.js';
        | ^
      6 |
      7 | describe('isBrowser', () => {
      8 |   it('should be browser', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/utils-browser.test.ts:5:1)


  ● Test suite failed to run

    Cannot find module '../output.js' from 'packages/core/src/__tests__/output-browser.test.ts'

      3 |  */
      4 |
    > 5 | import { output } from '../output.js';
        | ^
      6 |
      7 | describe('output', () => {
      8 |   it('should ignore all parsable data in browser', () => {

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
      at Object.<anonymous> (packages/core/src/__tests__/output-browser.test.ts:5:1)

Report generated by 🧪jest coverage report action from e9f48ec

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant