This bumps the React component libraries to latest where possible. Of note:
react-aria-components moves to v1.3.3
@bcgov/design-tokens moves to v3.1.0
ESLint is stuck at v8 for now because of peer dependencies
Some new commits related to tests:
9032eacbcf1cc90bac32f9d7826962f31a16af57 Test for Button classes. I started this work while trying to test the specific value of the design tokens being applied, but this is much harder than anticipated with Jest/JSDOM (I could only read the generic ButtonFace CSS rule, not our design token colors). I started down the road of replacing Jest with Vitest because of how slow and wonky Jest is, but I found the existing Button tests wouldn't "just work" in Vitest yet because of differences in the expect() API between Jest and Vitest. There is a branch test/vitest where I've started down the replacement path, but it's not ready for prime time.
32a73d60b519591cc848d255c8b49a05640404c8 Add tests for ButtonGroup.
466bce7d15dc5809e3111e4fe119a7cc89b9a5a0 Lint step gets added to the GitHub Actions workflow that runs the test suites for the React component library. I found that there was a new failing lint rule in the Form component interface, and I fixed that in 50c5bb032b10065d23874fe4e90bf0661fcfb15a. Right now there are no lint rules failing.
This bumps the React component libraries to latest where possible. Of note:
react-aria-components
moves to v1.3.3@bcgov/design-tokens
moves to v3.1.0Some new commits related to tests:
Button
classes. I started this work while trying to test the specific value of the design tokens being applied, but this is much harder than anticipated with Jest/JSDOM (I could only read the genericButtonFace
CSS rule, not our design token colors). I started down the road of replacing Jest with Vitest because of how slow and wonky Jest is, but I found the existingButton
tests wouldn't "just work" in Vitest yet because of differences in theexpect()
API between Jest and Vitest. There is a branchtest/vitest
where I've started down the replacement path, but it's not ready for prime time.ButtonGroup
.Form
component interface, and I fixed that in 50c5bb032b10065d23874fe4e90bf0661fcfb15a. Right now there are no lint rules failing.