diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3f0cee6c1b..8f950f033a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,7 @@ permissions: jobs: release: name: Release + if: github.repository_owner == 'TanStack' runs-on: ubuntu-latest permissions: contents: write diff --git a/packages/solid-query-devtools/src/__tests__/devtoolsPanel.test.tsx b/packages/solid-query-devtools/src/__tests__/devtoolsPanel.test.tsx index 745c7e471c..d5afd69805 100644 --- a/packages/solid-query-devtools/src/__tests__/devtoolsPanel.test.tsx +++ b/packages/solid-query-devtools/src/__tests__/devtoolsPanel.test.tsx @@ -130,12 +130,11 @@ describe('SolidQueryDevtoolsPanel', () => { style={{ width: '300px' }} /> )) - const panel = container.querySelector( - '.tsqd-parent-container', - ) as HTMLElement - expect(panel.style.height).toBe('500px') - expect(panel.style.width).toBe('300px') + expect(container.querySelector('.tsqd-parent-container')).toHaveStyle({ + height: '500px', + width: '300px', + }) }) it('should let "style" override the default container height on the rendered element', () => { @@ -147,12 +146,11 @@ describe('SolidQueryDevtoolsPanel', () => { style={{ width: '300px', height: '300px' }} /> )) - const panel = container.querySelector( - '.tsqd-parent-container', - ) as HTMLElement - expect(panel.style.height).toBe('300px') - expect(panel.style.width).toBe('300px') + expect(container.querySelector('.tsqd-parent-container')).toHaveStyle({ + height: '300px', + width: '300px', + }) }) it('should call "unmount" on the devtools instance when the component unmounts', () => { diff --git a/packages/solid-query-devtools/tsconfig.json b/packages/solid-query-devtools/tsconfig.json index 23e421b586..0ab39f0630 100644 --- a/packages/solid-query-devtools/tsconfig.json +++ b/packages/solid-query-devtools/tsconfig.json @@ -6,6 +6,12 @@ "jsx": "preserve", "jsxImportSource": "solid-js" }, - "include": ["src", "*.config.ts", "*.config.js", "package.json"], + "include": [ + "src", + "test-setup.ts", + "*.config.ts", + "*.config.js", + "package.json" + ], "references": [{ "path": "../query-devtools" }, { "path": "../solid-query" }] }