and I’m trying to test these transformations: <ht...
# typescript
q
b
@gorgeous-egg-16927 maybe?
q
levi let me know if you have any ideas, I’d happy to blog and write about this to help others
Oops @gorgeous-egg-16927
Sorry. Failing to type
g
I don’t have an example of testing using a JS framework, but maybe the CI tests we use would be a helpful jumping off point for you. https://github.com/pulumi/pulumi-kubernetes/tree/master/tests/sdk/nodejs/examples has a number of examples, including the
yaml-guestbook
example. The actual tests and assertions are in
examples_test.go
Note that these tests aren’t mocking anything; it’s all running against an actual k8s cluster. In CI, we create a short-lived GKE cluster to run tests, and then tear it down afterward.
q
I'd rather avoid that, I'm only trying to test the transformations on a yaml file.
I guess it's not possible to run those without the Pulumi engine?
g
You might be able to use the “render yaml” option to test that, but I haven’t tried it myself.
q
Oh. I didn't know that was an option. Is there docs on that?
q
Thank you both 🥰