Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.16.0 #407

Merged
merged 45 commits into from
Nov 27, 2023
Merged

Release 0.16.0 #407

merged 45 commits into from
Nov 27, 2023

Conversation

bryanjtc and others added 30 commits November 8, 2023 12:05
- Update test snapshots and test files in the `csf` and `playwright` directories.
- Update `hooks.ts`, `index.ts`, `transformPlaywright.test.ts`, `transformPlaywright.ts`, `transformPlaywrightJson.test.ts`, `transformPlaywrightJson.ts`, `setup-page.ts`, `test-storybook.ts`, `getCliOptions.test.ts`, `getCliOptions.ts`, `getParsedCliOptions.test.ts`, `getStorybookMain.ts`, `getStorybookMetadata.ts`, `getTestRunnerConfig.test.ts`, `getTestRunnerConfig.ts`, and `tsconfig.json`.
- These changes were made to improve the codebase and ensure compatibility with the latest dependencies and standards.
…ansformCsf.ts, src/playwright/transformPlaywrightJson.ts, and src/typings.d.ts

- Update package.json to include new dependencies or update existing ones.
- Modify src/config/jest-playwright.ts to configure Jest with Playwright.
- Refactor src/csf/transformCsf.ts to improve code readability and maintainability.
- Update src/playwright/transformPlaywrightJson.ts to handle new Playwright JSON format.
- Update src/typings.d.ts to include new type definitions or modify existing ones.
The __getContext variable was no longer being used in the codebase, so it was removed to improve code cleanliness and maintainability.
- Updated the `storyStoreV7` feature in the Storybook configuration to use a more concise expression.
- Modified the test runner to handle cases where the element handler is null or undefined.
- Added JSDoc type annotation for the exported Jest configuration.
- Added Jest configuration file (jest.config.js) to project root.
- Created a new test file (jest-playwright.test.ts) in the src/config directory.
- This commit introduces the necessary setup for running tests using Jest Playwright.
- The Jest configuration file allows customization of Jest's behavior.
- The new test file will be used for writing tests using the Jest Playwright library.
- This addition enhances the project's testing capabilities and enables UI testing with Playwright.
This commit adds a new test file for testing the hooks functionality in Playwright.
- Refactored getStorybookMain.test.ts and getStorybookMain.ts files.
- Made improvements to the utility functions for better performance and readability.
…ecessary conditional

The makePlayTest function in the transformCsf file has been simplified to remove an unnecessary conditional statement. The metaOrStoryPlay parameter is now optional, indicated by the use of the "?" symbol. This change was made to improve code readability and reduce complexity.
The TestRunnerConfig interface in the hooks.ts file now includes an optional tags property. This property allows users to include, exclude, or skip specific tags when running tests. The tags are defined as annotations in the story or meta. This change provides more flexibility and control over test execution based on specific tags.
- Updated the entry configuration in tsup.config.ts to include all JavaScript and TypeScript files in the src directory, excluding declaration files and test files.
- This change was made to ensure that only the necessary source files are included in the build process, improving build performance and reducing bundle size.
Simplified the logic in the `transformPlaywrightJson.ts` file to improve readability and maintainability.

- Replaced the double negation with a single negation in the `makeTest` function.
- Made the `tags` property optional in the `V4Entry` type.
- Added a default value of `false` for the `metaOrStoryPlay` parameter in the `makeTest` function.
- Removed the unused import of `TestRunnerConfig` in `test-storybook.ts`.
This commit includes changes to the transformPlaywrightJson module and its corresponding test file. The purpose of these changes is to refactor the code and improve its overall structure and readability.
@yannbf yannbf added the minor Increment the minor version when merged label Nov 27, 2023
Copy link

Updated dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
jest-playwright-preset 3.0.1...4.0.0 None +1/-4 89.5 kB mxschmitt

@yannbf yannbf merged commit 9f540d2 into main Nov 27, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants