You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
● 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)
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What/Why/How?
Testing switch from CommonJS -> ESM.
Issues:
Reference
Testing
Screenshots (optional)
Check yourself
Security