Skip to content

Commit

Permalink
fix vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Aug 23, 2024
1 parent e9e4bc5 commit b5b118a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions packages/graphiql-toolkit/src/create-fetcher/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@ export const createWebsocketsFetcherFromUrl = (
};

// TODO: defaults?
wsClient = createClient({
url,
connectionParams,
});
wsClient = createClient({ url, connectionParams });
return createWebsocketsFetcherFromClient(wsClient);
} catch (err) {
if (errorHasCode(err) && err.code === 'MODULE_NOT_FOUND') {
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco-graphql/test/monaco-editor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('monaco-editor', () => {
// expect(lines[1]).toMatch(' building for production...');
// expect(lines[2]).toBe('transforming...');
expect(lines[3]).toMatch(
`✓ ${parseInt(version, 10) > 16 ? 856 : 843} modules transformed.`,
`✓ ${parseInt(version, 10) > 16 ? 857 : 843} modules transformed.`,
);
// expect(lines[4]).toBe('rendering chunks...');
// expect(lines[5]).toBe('computing gzip size...');
Expand Down

0 comments on commit b5b118a

Please sign in to comment.