generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Release 0.16.0 #407
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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.
Refactor: Improve internal code
Improve type safety and code quality
…rom_v3.0.1_to_v4.0.0 Bump `jest-playwright-preset` from `v3.0.1` to `v4.0.0`
Docs: Adds feedback form to migration documentation
…scripts Refactor: Extract the setup page scripts into a separate file
Fix sync issues between tests
…messages Filter duplicated error messages in browser logs
Introduce logLevel configuration
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This release includes:
Introduce logLevel configuration #406
Filter duplicated error messages in browser logs #405
Fix sync issues between tests #404
Bump jest-playwright-preset from v3.0.1 to v4.0.0 #400