Skip to content

Commit

Permalink
chore: temp change to debug failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Dec 10, 2024
1 parent d9417f4 commit f9fc29c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions __tests__/commands/openapi/upload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ describe('rdme openapi upload', () => {
});

const result = await run(['--version', version, filename, '--key', key]);
expect(result).toStrictEqual({});

Check failure on line 252 in __tests__/commands/openapi/upload.test.ts

View workflow job for this annotation

GitHub Actions / Test Suite (lts/-1)

__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation

AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v20.18.1", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24

Check failure on line 252 in __tests__/commands/openapi/upload.test.ts

View workflow job for this annotation

GitHub Actions / Test Suite (lts/*)

__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation

AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v22.11.0", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24

Check failure on line 252 in __tests__/commands/openapi/upload.test.ts

View workflow job for this annotation

GitHub Actions / Test Suite (latest)

__tests__/commands/openapi/upload.test.ts > rdme openapi upload > given that the API definition is a local file > and the command is being run in a CI environment > should overwrite an existing API definition without asking for confirmation

AssertionError: expected { …(3) } to strictly equal {} - Expected + Received - Object {} + Object { + "error": [Error: Nock: No match for request { + "method": "GET", + "url": "https://api.readme.com/v2/versions/1.0.0/apis", + "headers": { + "accept": "application/json", + "authorization": "***", + "user-agent": "rdme-github/7.0.0 linux-x64 node-v23.4.0", + "x-github-repository": "readmeio/rdme", + "x-github-run-attempt": "1", + "x-github-run-id": "12262487580", + "x-github-run-number": "2805", + "x-github-sha": "0255825d9d5aee062abd7f6e0b19eca42b4b871d", + "x-rdme-ci": "GitHub Actions", + "x-readme-source": "cli-gh" + } + }], + "stderr": "- Validating the API definition located at __tests__/__fixtures__/petstore-simple-weird-version.json... + ", + "stdout": "", + } ❯ __tests__/commands/openapi/upload.test.ts:252:24
expect(result.stdout).toContain('was successfully updated in ReadMe!');

mock.done();
Expand Down

0 comments on commit f9fc29c

Please sign in to comment.