Skip to content

Commit

Permalink
chore(deps): update testing-library monorepo (major) (#1720)
Browse files Browse the repository at this point in the history
* chore(deps): update testing-library monorepo

* fix: test configurations

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Vicary A <[email protected]>
  • Loading branch information
renovate[bot] and vicary authored Feb 4, 2025
1 parent 7516f4e commit 138f536
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 123 deletions.
2 changes: 1 addition & 1 deletion packages/react/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = require('test-utils/jest.config.js').getConfig({
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect'],
setupFiles: ['./jest.setup.ts'],
setupFilesAfterEnv: ['@testing-library/jest-dom'],
testEnvironment: 'jsdom',
});
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.19.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.3.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@types/eslint": "^8.56.12",
"@types/eslint__eslintrc": "^2.1.2",
"@types/eslint__js": "^8.42.3",
Expand Down
4 changes: 1 addition & 3 deletions packages/react/test/graphqlHOC.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';

import { render, waitFor } from '@testing-library/react';

import React from 'react';
import { createReactTestClient } from './utils';

test('Basic Non-Suspense', async () => {
Expand Down
1 change: 0 additions & 1 deletion packages/react/test/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import '@testing-library/jest-dom/extend-expect';
import {
Cache,
SchemaUnionsKey,
Expand Down
6 changes: 6 additions & 0 deletions packages/solid/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"compilerOptions": {
"jsx": "preserve"
},
"include": ["src", "vitest.setup.ts"]
}
2 changes: 2 additions & 0 deletions packages/solid/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ export default defineConfig({
test: {
coverage: {
enabled: !!process.env.CI,
provider: 'v8',
},
environment: 'jsdom',
setupFiles: ['./vitest.setup.ts'],
},
});
1 change: 1 addition & 0 deletions packages/solid/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@testing-library/jest-dom/vitest';
135 changes: 19 additions & 116 deletions pnpm-lock.yaml

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

0 comments on commit 138f536

Please sign in to comment.