https://pulumi.com logo
Title
q

quiet-wolf-18467

11/17/2020, 4:00 PM
b

billowy-army-68599

11/17/2020, 4:01 PM
@gorgeous-egg-16927 maybe?
q

quiet-wolf-18467

11/17/2020, 7:36 PM
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

gorgeous-egg-16927

11/17/2020, 11:41 PM
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

quiet-wolf-18467

11/18/2020, 8:20 AM
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

gorgeous-egg-16927

11/18/2020, 4:56 PM
You might be able to use the “render yaml” option to test that, but I haven’t tried it myself.
q

quiet-wolf-18467

11/18/2020, 5:34 PM
Oh. I didn't know that was an option. Is there docs on that?
q

quiet-wolf-18467

11/18/2020, 6:23 PM
Thank you both 🥰