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

WIP: run tests on main branch #594

Closed
wants to merge 1 commit into from
Closed

WIP: run tests on main branch #594

wants to merge 1 commit into from

Conversation

JohnAlbin
Copy link
Collaborator

The Jest test appear to be failing on main. Testing…

Copy link

vercel bot commented Nov 16, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
next-drupal ⬜️ Ignored (Inspect) Nov 16, 2023 5:05pm

@JohnAlbin
Copy link
Collaborator Author

JohnAlbin commented Nov 16, 2023

Yep. They are failing: https://github.com/chapter-three/next-drupal/actions/runs/6894049098

$ jest packages/next-drupal
PASS packages/next-drupal-query/tests/index.test.ts
PASS packages/next-drupal/tests/crud.test.ts (17.848 s)
FAIL packages/next-drupal/tests/client.test.ts (22.17 s)

These are the same 3 tests that have always failed when I try running Jest locally. I do not understand why they were always passing in the CI until a few days ago. Especially given that the last commit added to main was 2 weeks ago.

  ● getResource › it throws an error if revision access if forbidden

    expect(received).rejects.toThrow(expected)

    Expected substring: "403 Forbidden
    The current user is not allowed to GET the selected resource. The user does not have access to the requested version."
    Received message:   "401 Unauthorized
    No authentication credentials provided."

  ● getResourceByPath › it throws an error if revision access if forbidden

    expect(received).rejects.toThrow(expected)

    Expected substring: "403 Forbidden
    The current user is not allowed to GET the selected resource. The user does not have access to the requested version."
    Received message:   "401 Unauthorized
    No authentication credentials provided."

  ● getResourceFromContext › it throws an error if revision access if forbidden

    expect(received).rejects.toThrow(expected)

    Expected substring: "403 Forbidden
    The current user is not allowed to GET the selected resource. The user does not have access to the requested version."
    Received message:   "401 Unauthorized
    No authentication credentials provided."

@JohnAlbin JohnAlbin closed this Nov 21, 2023
@JohnAlbin JohnAlbin deleted the test-main-branch branch November 21, 2023 11:59
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