-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
We need to add an onboarding process for setting up the various component testing plugins. I would suggest also to add 3 different options at the start (before the test runner selection), with multi-select.
- end-to-end testing
- component testing
- mobile testing
This will affect many of the rest of the questions/prompts.
Component testing
- Select UI framework (single-choice):
- React
- Vue.js
- Storybook
- the
pluginsarray is populated with the selected plugin - React/Vue
vite.config.js/vite.config.tsconfig file is created which loads thevite-plugin-nightwatch- the nightwatch config file contains a
vite_dev_serversettings block which looks like:-
start_vite: true, port: 5173
-
- the default base_url is
localhost:5173
- React only
- the output
nightwatchfolder needs to contain anindex.jsxfile -- https://nightwatchjs.org/guide/component-testing/write-jsx-react-tests.html#loading-static-assets
- the output
- Storybook
- default base_url is
http://localhost:6006 - default source folder is
'stories/*.stories.jsx' - the nightwatch config file needs to contain the following
-
'@nightwatch/storybook': { start_storybook: true, storybook_config_dir: '.storybook', hide_csf_errors: true, show_browser_console: true, storybook_url: 'http://localhost:6006/' }
- default base_url is
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request