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

Snapshot mismatch when runing tests in the CI #6469

Open
polamoros opened this issue May 14, 2024 · 0 comments
Open

Snapshot mismatch when runing tests in the CI #6469

polamoros opened this issue May 14, 2024 · 0 comments
Labels
🐛 bug Something isn't working good first issue Good for newcomers 🧪 testing

Comments

@polamoros
Copy link
Collaborator

polamoros commented May 14, 2024

I tried this:

Having a wing test with a function:

bring cloud;

let fn = new cloud.Function(inflight (event: str?) => {
});

test "test 1" {
  assert(true);
}

and creating the snapshots
wing test -t tf-aws --snapshots=update

Snapshots change if the path of the project changes (when running tests on the CI for ex.).

This happened:

image

I expected this:

the snapshots not to change

Is there a workaround?

No response

Anything else?

No response

Wing Version

0.73.41

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
@polamoros polamoros added the 🐛 bug Something isn't working label May 14, 2024
@staycoolcall911 staycoolcall911 added the good first issue Good for newcomers label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working good first issue Good for newcomers 🧪 testing
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

3 participants