From b482350288ae630c1d9232a3327b5a0c1d405d14 Mon Sep 17 00:00:00 2001 From: Jeffrey Dowdle Date: Fri, 18 Aug 2023 08:43:28 +1000 Subject: [PATCH] chore(@dpc-sdp/nuxt-ripple-cli): added missing files to layer ci command --- .../latest/cypress/features/example.feature.t | 10 ++++++++ .../support/step_definitions/index.ts.t | 4 ++++ .../latest/github/PULL_REQUEST_TEMPLATE.md.t | 24 +++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/features/example.feature.t create mode 100644 packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/support/step_definitions/index.ts.t create mode 100644 packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/github/PULL_REQUEST_TEMPLATE.md.t diff --git a/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/features/example.feature.t b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/features/example.feature.t new file mode 100644 index 0000000000..fa7237ab65 --- /dev/null +++ b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/features/example.feature.t @@ -0,0 +1,10 @@ +--- +to: cypress/features/example.feature +--- +Feature: Example test + +This is an example test which should be modified or removed as required. See @dpc-sdp/ripple-test-utils for more info. + +@mockserver @skip +Scenario: Example - delete me. + Given I visit the page "/" diff --git a/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/support/step_definitions/index.ts.t b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/support/step_definitions/index.ts.t new file mode 100644 index 0000000000..ee64f42349 --- /dev/null +++ b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/cypress/support/step_definitions/index.ts.t @@ -0,0 +1,4 @@ +--- +to: cypress/support/step_definitions/index.ts +--- +import '@dpc-sdp/ripple-test-utils/step_definitions' diff --git a/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/github/PULL_REQUEST_TEMPLATE.md.t b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/github/PULL_REQUEST_TEMPLATE.md.t new file mode 100644 index 0000000000..d219207410 --- /dev/null +++ b/packages/nuxt-ripple-cli/src/commands/init/_templates/layer/latest/github/PULL_REQUEST_TEMPLATE.md.t @@ -0,0 +1,24 @@ +--- +to: .github/PULL_REQUEST_TEMPLATE.yml +--- + + +**Issue**: + +### What I did + +- +- + +### How to test + +- +- + +### Checklist + + +- [ ] I have read the [Ripple documentation](https://www.ripple.sdp.vic.gov.au/framework/) documentation around adding custom functionality. +- [ ] I have added Cypress integration tests for new content types or components +- [ ] I have added unit tests for helper functions +- [ ] This PR requires changes to environment variables which need to be added in https://github.com/dpc-sdp/sdp-cmdb