Skip to content

Commit

Permalink
Merge pull request #17871 from storybookjs/chore/e2e-vite
Browse files Browse the repository at this point in the history
Build: Add vite-react to e2e tests
  • Loading branch information
shilman authored Apr 6, 2022
2 parents d5a99fd + f4e00ff commit 645f5ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ jobs:
name: Run E2E (core) tests
# Do not test CRA here because it's done in PnP part
# TODO: Remove `web_components_typescript` as soon as Lit 2 stable is released
command: yarn test:e2e-framework vue3 angular130 angular13 angular12 angular11 web_components_typescript web_components_lit2 react
command: yarn test:e2e-framework vue3 angular130 angular13 angular12 angular11 web_components_typescript web_components_lit2 react vite_react
no_output_timeout: 5m
- store_artifacts:
path: /tmp/cypress-record
Expand Down
4 changes: 4 additions & 0 deletions cypress/generated/addon-interactions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ describe('addon-interactions', () => {
onlyOn('react', () => {
it('should have interactions', test);
});

onlyOn('vite_react', () => {
it('should have interactions', test);
});
});
7 changes: 7 additions & 0 deletions lib/cli/src/repro-generators/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ export const webpack_react: Parameters = {
generator: fromDeps('react', 'react-dom', 'webpack@webpack-4'),
};

export const vite_react: Parameters = {
framework: 'react',
name: 'vite_react',
version: 'latest',
generator: 'npx -p create-vite@{{version}} create-vite {{appName}} --template react-ts',
};

export const react_in_yarn_workspace: Parameters = {
framework: 'react',
name: 'react_in_yarn_workspace',
Expand Down

0 comments on commit 645f5ab

Please sign in to comment.