Skip to content
Open
5 changes: 5 additions & 0 deletions .changeset/rare-guests-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@leafygreen-ui/split-button': minor
---

Adds and exports test harnesses from SplitButton package
4 changes: 3 additions & 1 deletion packages/split-button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@
"@leafygreen-ui/palette": "workspace:^",
"@leafygreen-ui/polymorphic": "workspace:^",
"@leafygreen-ui/popover": "workspace:^",
"@leafygreen-ui/tokens": "workspace:^"
"@leafygreen-ui/tokens": "workspace:^",
"@lg-tools/test-harnesses": "workspace:^"
Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to add an exports key to this file so consumers can access the test utils

"exports": {
  ".": {
    "require": "./dist/umd/index.js",
    "import": "./dist/esm/index.js",
    "types": "./dist/types/index.d.ts"
  },
  "./testing": {
    "require": "./dist/umd/testing/index.js",
    "import": "./dist/esm/testing/index.js",
    "types": "./dist/types/testing/index.d.ts"
  },
},

},
"peerDependencies": {
"@leafygreen-ui/leafygreen-provider": "workspace:^"
},
"devDependencies": {
"@lg-tools/build": "workspace:^"

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change

}
}
Loading