Skip to content

Extract jest setup package json#5749

Merged
kzuraw merged 5 commits intomainfrom
extract-jest-setup-package-json
Aug 4, 2025
Merged

Extract jest setup package json#5749
kzuraw merged 5 commits intomainfrom
extract-jest-setup-package-json

Conversation

@kzuraw
Copy link
Contributor

@kzuraw kzuraw commented Jul 28, 2025

Scope of the change

  • This PR extracts jest & lint-staged configs into own files
  • It also applies sort-package-json to package.json

@kzuraw kzuraw requested a review from a team as a code owner July 28, 2025 12:11
@kzuraw kzuraw added the skip changeset Use if your changes doesn't need entry in changelog label Jul 28, 2025
@changeset-bot
Copy link

changeset-bot bot commented Jul 28, 2025

⚠️ No Changeset found

Latest commit: 84f2ee9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kzuraw kzuraw enabled auto-merge (squash) July 28, 2025 12:11
@kzuraw kzuraw requested review from Copilot and removed request for andrzejewsky and witoszekdev July 28, 2025 12:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR extracts Jest and lint-staged configurations from package.json into separate files and applies automated package.json formatting using sort-package-json.

  • Extracts Jest configuration from package.json (to be moved to separate file)
  • Extracts lint-staged configuration to a dedicated lint-staged.config.js file
  • Reorganizes package.json structure using sort-package-json for consistent formatting

Reviewed Changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 2 comments.

File Description
package.json Removes Jest and lint-staged configurations, reorganizes fields according to sort-package-json standards
lint-staged.config.js Creates new dedicated configuration file for lint-staged with TypeScript support and package.json sorting

@codecov
Copy link

codecov bot commented Jul 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.35%. Comparing base (8415693) to head (9cc6e8b).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5749    +/-   ##
========================================
  Coverage   66.35%   66.35%            
========================================
  Files        1456     1456            
  Lines       25366    25366            
  Branches     5004     5187   +183     
========================================
  Hits        16832    16832            
+ Misses       8488     7965   -523     
- Partials       46      569   +523     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

Differences Found

⚠️ 5 packages or licenses were added.

Expand
License	Package
MIT	fdir
MIT	git-hooks-list
MIT	sort-object-keys
MIT	sort-package-json
MIT	tinyglobby

Summary

Expand
License Name Package Count Packages
0BSD 1
Packages
  • tslib
CC0-1.0 1
Packages
  • type-fest
MIT/X11 1
Packages
  • nub
MPL-1.1 1
Packages
  • harmony-reflect
MPL-2.0 1
Packages
  • dompurify
Public Domain 1
Packages
  • jsonify
Python-2.0 1
Packages
  • argparse
WTFPL 1
Packages
  • opener
CC-BY-4.0 2
Packages
  • @saleor/macaw-ui
  • caniuse-lite
<<missing>> 3
Packages
  • busboy
  • saleor-dashboard
  • streamsearch
BlueOak-1.0.0 3
Packages
  • jackspeak
  • package-json-from-dist
  • path-scurry
BSD-2-Clause 24
Packages
  • @typescript-eslint/parser
  • @typescript-eslint/typescript-estree
  • browser-process-hrtime
  • css-select
  • css-what
  • domelementtype
  • domhandler
  • domutils
  • dotenv
  • dotenv-expand
  • entities
  • escodegen
  • eslint-scope
  • espree
  • esprima
  • esrecurse
  • estraverse
  • esutils
  • nth-check
  • stringify-object
  • And 4 more...
Apache-2.0 45
Packages
  • @ampproject/remapping
  • @editorjs/editorjs
  • @humanwhocodes/config-array
  • @humanwhocodes/module-importer
  • @opentelemetry/api
  • @opentelemetry/semantic-conventions
  • @playwright/test
  • @swc/core
  • @swc/core-darwin-arm64
  • @swc/core-darwin-x64
  • @swc/core-linux-arm-gnueabihf
  • @swc/core-linux-arm64-gnu
  • @swc/core-linux-arm64-musl
  • @swc/core-linux-x64-gnu
  • @swc/core-linux-x64-musl
  • @swc/core-win32-arm64-msvc
  • @swc/core-win32-ia32-msvc
  • @swc/core-win32-x64-msvc
  • @swc/counter
  • @swc/types
  • And 25 more...
BSD-3-Clause 46
Packages
  • @humanwhocodes/object-schema
  • @saleor/app-sdk
  • @sentry/cli
  • @sentry/cli-darwin
  • @sentry/cli-linux-arm
  • @sentry/cli-linux-arm64
  • @sentry/cli-linux-i686
  • @sentry/cli-linux-x64
  • @sentry/cli-win32-i686
  • @sentry/cli-win32-x64
  • @sinonjs/commons
  • @sinonjs/fake-timers
  • abab
  • asn1js
  • babel-plugin-istanbul
  • charenc
  • chroma-js
  • crypt
  • diff
  • esquery
  • And 26 more...
ISC 50
Packages
  • @isaacs/cliui
  • @istanbuljs/load-nyc-config
  • anymatch
  • boolbase
  • browser-stdout
  • cli-width
  • cliui
  • electron-to-chromium
  • fastq
  • flatted
  • foreground-child
  • fs.realpath
  • get-caller-file
  • get-own-enumerable-property-symbols
  • glob
  • glob-parent
  • graceful-fs
  • inflight
  • inherits
  • ini
  • And 30 more...
MIT 1187
Packages
  • @adobe/css-tools
  • @apollo/client
  • @ardatan/relay-compiler
  • @ardatan/sync-fetch
  • @babel/code-frame
  • @babel/compat-data
  • @babel/core
  • @babel/generator
  • @babel/helper-annotate-as-pure
  • @babel/helper-compilation-targets
  • @babel/helper-create-class-features-plugin
  • @babel/helper-member-expression-to-functions
  • @babel/helper-module-imports
  • @babel/helper-module-transforms
  • @babel/helper-optimise-call-expression
  • @babel/helper-plugin-utils
  • @babel/helper-replace-supers
  • @babel/helper-simple-access
  • @babel/helper-skip-transparent-expression-wrappers
  • @babel/helper-string-parser
  • And 1167 more...

@github-actions github-actions bot temporarily deployed to pr-5749 July 28, 2025 12:17 Destroyed
@vercel
Copy link

vercel bot commented Jul 28, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
saleor-dashboard-storybook ⬜️ Ignored (Inspect) Visit Preview Aug 4, 2025 7:01am

@github-actions github-actions bot temporarily deployed to pr-5749 July 28, 2025 12:32 Destroyed
lkostrowski
lkostrowski previously approved these changes Jul 31, 2025
@kzuraw kzuraw merged commit ad900f6 into main Aug 4, 2025
20 checks passed
@kzuraw kzuraw deleted the extract-jest-setup-package-json branch August 4, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip changeset Use if your changes doesn't need entry in changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants