Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
stephl3 committed Dec 31, 2024
1 parent 8675f55 commit 97ccafc
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ jobs:
key: ${{ runner.os }}-build-cache-${{ hashFiles('package.json', 'pnpm-lock.yaml', '**/src/', '!**/node_modules', '!**/dist') }}

- name: tests
run: pnpm test --ci
run: pnpm test:custom --ci
env:
JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/react17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:
run: pnpm build

- name: Run tests in React 17
run: pnpm lg test --react17
run: pnpm test:custom --react17
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"slackbot": "lg slackbot release",
"start": "npx storybook dev -p 9001 --no-version-updates",
"serve": "npx http-server storybook-static -c5",
"test": "lg test",
"test:custom": "lg test --",
"unlink": "lg unlink",
"validate": "lg validate",
"watch": "npx nodemon --watch packages/ -e tsx,ts --exec 'pnpm storybook build --test'"
Expand Down
2 changes: 0 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packages:
# all packages in direct subdirectories of charts/, chat/, packages/, & tools/
- 'charts/**'
- 'chat/**'
- 'packages/**'
- 'tools/**'
- 'charts/*'
- 'chat/*'
- 'packages/*'
- 'tools/*'
1 change: 1 addition & 0 deletions tools/test/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
public-hoist-pattern[]=jest
2 changes: 1 addition & 1 deletion tools/test/scripts/install-react17.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ const packagesToInstall = Object.entries(r17packages.dependencies).map(
([pkg, version]) => `${pkg}@${version}`,
);

spawnSync('pnpm', ['install', '-WD', ...packagesToInstall], {
spawnSync('pnpm', ['add', '--save-dev', '--ignore-workspace-root-check', ...packagesToInstall], {
stdio: 'inherit',
});

0 comments on commit 97ccafc

Please sign in to comment.