Skip to content

Commit

Permalink
fix: test configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Feb 4, 2025
1 parent f4309cf commit 405b76c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 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: 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';

0 comments on commit 405b76c

Please sign in to comment.