3. Deploy and Test
Now that you have your project and cluster set up, you can go ahead and deploy the project:
You should see your services come up. Next we can set up our first test. Similar to how you configured the
servicesearlier, open the
frontend/garden.ymlconfig and add the following:
- name: unit
args: [npm, test]
- name: integ
args: [npm, run, integ]
This defines two simple test suites. One simply runs the unit tests of the
frontendservice. The other runs a basic integration test that relies on the
frontendservice being up and running.
Let's run them both:
You should see Garden ensuring that the services are up and running, and that both tests run successfully.