Update integration tests to use commitFilesFromBase64 #149
ci.yml
on: pull_request
Lint workflows
13s
Test Unit
32s
Test Integration
2m 9s
Typecheck
20s
Lint
21s
CI OK
4s
Annotations
3 errors
|
Test Integration
Process completed with exit code 1.
|
|
tests/integration/core.test.ts > commitFilesFromBase64 > existing branches > cleans up a pre-existing temporary branch when force is true:
tests/integration/utils.ts#L152
AssertionError: promise resolved "{ …(4) }" instead of rejecting
- Expected
+ Received
- Error {
- "message": "rejected promise",
+ {
+ "data": {
+ "node_id": "REF_kwDOMWLxBNoAlXJlZnMvaGVhZHMvY2hhbmdlc2V0cy1naGNvbW1pdC10ZXN0LTgzMGRjNmNmLWlkLTI3NDMxNTU2MzUyL3RlbXAtY2hhbmdlc2V0cy1naGNvbW1pdC10ZXN0LTgzMGRjNmNmLWlkLTI3NDMxNTU2MzUyL2V4aXN0aW5nLWJyYW5jaC1mb3JjZS1leGlzdGluZy10ZW1w",
+ "object": {
+ "sha": "79e870f58653d2b8be7e976aef92481db40600bf",
+ "type": "commit",
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/commits/79e870f58653d2b8be7e976aef92481db40600bf",
+ },
+ "ref": "refs/heads/changesets-ghcommit-test-830dc6cf-id-27431556352/temp-changesets-ghcommit-test-830dc6cf-id-27431556352/existing-branch-force-existing-temp",
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/refs/heads/changesets-ghcommit-test-830dc6cf-id-27431556352/temp-changesets-ghcommit-test-830dc6cf-id-27431556352/existing-branch-force-existing-temp",
+ },
+ "headers": {
+ "access-control-allow-origin": "*",
+ "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset, Warning",
+ "cache-control": "private, max-age=60, s-maxage=60",
+ "content-encoding": "gzip",
+ "content-security-policy": "default-src 'none'",
+ "content-type": "application/json; charset=utf-8",
+ "date": "Fri, 12 Jun 2026 17:22:37 GMT",
+ "etag": "W/\"adb6f7588075d260a86eb7d6c28a49dc6d30df773e0c391bb2157f0387af0b00\"",
+ "last-modified": "Fri, 12 Jun 2026 15:56:44 GMT",
+ "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
+ "server": "github.com",
+ "strict-transport-security": "max-age=31536000; includeSubdomains; preload",
+ "transfer-encoding": "chunked",
+ "vary": "Accept, Authorization, Cookie, X-GitHub-OTP,Accept-Encoding, Accept, X-Requested-With",
+ "x-accepted-github-permissions": "contents=read",
+ "x-content-type-options": "nosniff",
+ "x-frame-options": "deny",
+ "x-github-api-version-selected": "2022-11-28",
+ "x-github-media-type": "github.v3; format=json",
+ "x-github-request-id": "7C00:2EB061:2A03C64:9D2D218:6A2C405D",
+ "x-poll-interval": "300",
+ "x-ratelimit-limit": "5000",
+ "x-ratelimit-remaining": "4998",
+ "x-ratelimit-reset": "1781288469",
+ "x-ratelimit-resource": "core",
+ "x-ratelimit-used": "2",
+ "x-xss-protection": "0",
+ },
+ "status": 200,
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/ref/heads%2Fchangesets-ghcommit-test-830dc6cf-id-27431556352%2Ftemp-changesets-ghcommit-test-830dc6cf-id-27431556352%2Fexisting-branch-force-existing-temp",
}
❯ expectBranchDoesNotExist tests/integration/utils.ts:152:3
❯ tests/integration/core.test.ts:315:13
|
|
CI OK
Process completed with exit code 1.
|