Skip to content

Commit

Permalink
tweak config
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Nov 23, 2022
1 parent e5f7152 commit b61d16c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/next-urql/src/__tests__/with-urql-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { Client } from 'urql';
import { withUrqlClient, NextUrqlPageContext } from '..';
import * as init from '../init-urql-client';

beforeEach(vi.clearAllMocks);

const MockApp: React.FC<any> = () => {
return h('div');
};
Expand Down Expand Up @@ -45,6 +43,7 @@ describe('withUrqlClient', () => {

expect(app.props().urqlClient).toBeInstanceOf(Client);
expect(spyInitUrqlClient).toHaveBeenCalledTimes(1);
// @ts-ignore
expect(spyInitUrqlClient.mock.calls[0][0].exchanges).toHaveLength(4);
});

Expand Down
4 changes: 1 addition & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ import path from 'path';
export default defineConfig({
test: {
environment: 'jsdom',
deps: {
fallbackCJS: true,
},
globals: true,
maxConcurrency: 20,
setupFiles: [path.resolve(__dirname, 'scripts/vitest/setup.js')],
clearMocks: true,
alias: {
Expand Down

0 comments on commit b61d16c

Please sign in to comment.