Update integration tests to use commitFilesFromBase64 #150
ci.yml
on: pull_request
Lint workflows
10s
Test Unit
25s
Test Integration
1m 59s
Typecheck
18s
Lint
20s
CI OK
2s
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_kwDOMWLxBNoAeHJlZnMvaGVhZHMvY2hhbmdlc2V0cy1naGNvbW1pdC10ZXN0L2NoYW5nZXNldHMtZ2hjb21taXQtdGVzdC00ZWEyMjM4OC1pZC0yNzQzMjY0NDY2NC9leGlzdGluZy1icmFuY2gtZm9yY2UtZXhpc3RpbmctdGVtcA",
+ "object": {
+ "sha": "d93c1fabf76685eee488e51c1b0ba9914cc1199c",
+ "type": "commit",
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/commits/d93c1fabf76685eee488e51c1b0ba9914cc1199c",
+ },
+ "ref": "refs/heads/changesets-ghcommit-test/changesets-ghcommit-test-4ea22388-id-27432644664/existing-branch-force-existing-temp",
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/refs/heads/changesets-ghcommit-test/changesets-ghcommit-test-4ea22388-id-27432644664/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:43:17 GMT",
+ "etag": "W/\"31d9c21560337cbb95de98e195b5c8de64633bd4782e886f9bab574d87e4e442\"",
+ "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": "E800:1B36EF:B414078:2A12F81C:6A2C4534",
+ "x-poll-interval": "300",
+ "x-ratelimit-limit": "5000",
+ "x-ratelimit-remaining": "4994",
+ "x-ratelimit-reset": "1781288469",
+ "x-ratelimit-resource": "core",
+ "x-ratelimit-used": "6",
+ "x-xss-protection": "0",
+ },
+ "status": 200,
+ "url": "https://api.github.com/repos/changesets/ghcommit/git/ref/heads%2Fchangesets-ghcommit-test%2Fchangesets-ghcommit-test-4ea22388-id-27432644664%2Fexisting-branch-force-existing-temp",
}
❯ expectBranchDoesNotExist tests/integration/utils.ts:152:3
❯ tests/integration/core.test.ts:323:13
|
|
CI OK
Process completed with exit code 1.
|