Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
devthedevel committed Apr 26, 2024
1 parent 72316ef commit 2d1e346
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 5 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

module.exports = {
export default {
// All imported modules in your tests should be mocked automatically
// automock: false,

Expand All @@ -24,9 +24,10 @@ module.exports = {
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
// coveragePathIgnorePatterns: [
// "/node_modules/"
// ],
coveragePathIgnorePatterns: [
"/node_modules/",
"src/index.ts"
],

// A list of reporter names that Jest uses when writing coverage reports
coverageReporters: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import mockConsole from 'jest-mock-console';
jest.unmock('axios');
import axios from 'axios';
import notificationapi from '../index';
import notificationapi from '../notificationapi';
import MockAdapter from 'axios-mock-adapter';
import {
Channels,
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"removeComments": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"moduleResolution": "Node"
"moduleResolution": "Node",
"esModuleInterop": true
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*", "**/__mocks__/*"]
Expand Down

0 comments on commit 2d1e346

Please sign in to comment.