Skip to content

Commit

Permalink
fix(tests): remove axios adapter mock
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Jul 8, 2021
1 parent 8bc4492 commit c1deb7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
rootDir: '.',
resetMocks: true,
testEnvironment: 'node',
testEnvironment: 'jsdom',
moduleFileExtensions: ['ts', 'js'],
collectCoverage: true,
coveragePathIgnorePatterns: ['/node_modules/'],
Expand Down
5 changes: 4 additions & 1 deletion test/tests/retry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import nock from 'nock';
import { SDK } from '../utils';
SDK.axiosInstance.defaults.adapter = require('axios/lib/adapters/http');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const http = require('axios/lib/adapters/http');

SDK.axiosInstance.defaults.adapter = http;

const baseUrl = `https://cardano-mainnet.blockfrost.io`;
const path = `/api/v0/blocks/latest`;
Expand Down

0 comments on commit c1deb7a

Please sign in to comment.