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

test(sanity): migrate sanity package to vitest #7578

Open
wants to merge 6 commits into
base: next
Choose a base branch
from

Commits on Oct 1, 2024

  1. test: add efps to CI (#7556)

    * test: revamp eFPS suite
    
    * chore: add efps github actions
    
    * chore: use different token for efps tests
    
    * test: add comment with perf report result
    
    * test: keep playwright install script
    
    * feat: add workflow dispatch inputs
    
    * fix: use `requestAnimationFrame` instead
    
    ---------
    
    Co-authored-by: Binoy Patel <[email protected]>
    ricokahler and binoy14 authored Oct 1, 2024
    Configuration menu
    Copy the full SHA
    aeb9e71 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2024

  1. Configuration menu
    Copy the full SHA
    b8dc3c7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e7e7185 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. feat(sanity): studio manifests cont (#7403)

    * feat(sanity): allow `extractSchema` worker to emit schemas for all workspaces
    
    * feat(sanity): include workspace and dataset names when extracting schema
    
    * feat(cli): add `manifest` commands
    
    * feat(manifest): add `@sanity/manifest` package
    
    * refactor(sanity): use manifest schemas from `@sanity/manifest`
    
    * chore: format files
    
    * feat(schema): include `title`, `description`, and `deprecated` attributes when extracting schema
    
    * feat(sanity): add `direct` schema format to schema extractor
    
    * Revert "feat(schema): include `title`, `description`, and `deprecated` attributes when extracting schema"
    
    This reverts commit 60cb576.
    
    * feat(sanity): export `ConcreteRuleClass` class
    
    * feat(sanity): include validation rules in manifests
    
    * refactor(sanity): move manifest extraction code
    
    * feat(sanity): extract manifest during build
    
    * feat(sanity): adopt `.studioschema.json` filename suffix for manifest schemas
    
    * refactor(sanity): rename manifest extraction functions (remove plural)
    
    * fix(sanity): remove redundant success message
    
    * fix(sanity): stop build spinner before starting manifest extraction
    
    * feat(sanity): add `unstable_extractManifestOnBuild` CLI config option
    
    * feat(test-studio): enable `unstable_extractManifestOnBuild`
    
    * fix(sanity): switch to node crypto for node 18 compatibility
    
    * feat(cli): add `unstable_staticAssetsPath` CLI configuration option
    
    * chore(cli): refine `unstable_extractManifestOnBuild` CLI configuration option description
    
    * feat(sanity): remove extraneous `types` wrapper from manifests
    
    * debug(test-studio): remove Mux plugin to unblock typegen
    
    * feat(embedded-studio): enable manifest extraction
    
    * feat(starter-next-studio): enable manifest extraction
    
    * wip
    
    * feat(sanity): normalize type constraints in manifest validation
    
    * wip
    
    * chore: merge fix
    
    * feat: serialize userland properties and validation rules in manifest
    
    * fix: remove @sanity/manifest package
    
    * chore: cleanup
    
    * fix: serialize fieldsets
    
    * fix: omit default titles on fields and array-members
    
    * fix: ensure manifest schema is restoreble and supports cross dataset references
    
    * chore: mergefix
    
    * fix: serialization of type aliases no longer inlines fields and of props
    
    * fix: removes double dot in filename
    
    * feat: manifest command
    
    * chore: tweaks
    
    * chore: revert redundant changes
    
    * fix: adds manifest group to CLI
    
    * chore: wording change
    
    * fix: adds a 2-minute timeout to manifest extract
    
    * fix: ensures error code when mainfest extract fails and changes failed spinner message to info
    
    * chore: use *ENABLED instead of *DISABLED for constant
    
    * chore: defensive optional chaining for option extraction
    
    * chore: reworded EXTRACT_FAILURE_MESSAGE
    
    ---------
    
    Co-authored-by: Ash <[email protected]>
    2 people authored and bjoerge committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    65c447b View commit details
    Browse the repository at this point in the history
  2. fix(cli): use studioHost from CLI config for intent link (#7570)

    ### Description
    
    <!--
    What changes are introduced?
    Why are these changes introduced?
    What issue(s) does this solve? (with link, if possible)
    -->
    
    Updates the validate command to use studioHost configured in the CLI
    config instead of relying on the projects endpoint studioHost for this
    information.
    
    ### What to review
    
    <!--
    What steps should the reviewer take in order to review?
    What parts/flows of the application/packages/tooling is affected?
    -->
    
    Changes makes sense
    
    ### Testing
    
    <!--
    Did you add sufficient testing for this change?
    If not, please explain how you tested this change and why it was not
    possible/practical for writing an automated test
    -->
    
    Tests Updates
    
    ### Notes for release
    
    <!--
    Engineers do not need to worry about the final copy,
    but they must provide the docs team with enough context on:
    
    * What changed
    * How does one use it (code snippets, etc)
    * Are there limitations we should be aware of
    
    If this is PR is a partial implementation of a feature and is not
    enabled by default or if
    this PR does not contain changes that needs mention in the release notes
    (tooling chores etc),
    please call this out explicitly by writing "Part of feature X" or "Not
    required" in this section.
    -->
    
    N/A (does not seem it is important to mention in release notes)
    binoy14 authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    e098800 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1467824 View commit details
    Browse the repository at this point in the history