Skip to content

Commit

Permalink
fix broken coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Oct 3, 2023
1 parent c73137e commit e5489e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ const config = {
// node_modules and pnp folders by default so that they are not transpiled
// Some libraries (even if transitive) are transitioning to ESM and need additional transpilation. Relevant issues:
// - tiny-sdf: https://github.com/visgl/deck.gl/issues/7735
transformIgnorePatterns: ["/node_modules/(?!(@mapbox/tiny-sdf)/)", "\\.pnp\\.[^\\\/]+$"]
// TODO For some reason transformIgnorePatterns are ignored in combination with TS, using moduleNameMapper instead.
// transformIgnorePatterns: ["/node_modules/(?!(@mapbox/tiny-sdf)/)", "\\.pnp\\.[^\\\/]+$"]
moduleNameMapper: {
'@mapbox/tiny-sdf': `<rootDir>/node_modules/@mapbox/tiny-sdf/index.cjs`
}
};

module.exports = config;
2 changes: 1 addition & 1 deletion test/helpers/component-jest-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import {Provider} from 'react-redux';
import configureStore from 'redux-mock-store';
import {ThemeProvider} from 'styled-components';
import {IntlProvider} from 'react-intl';
import {messages} from 'localization';

import {render} from '@testing-library/react';
import {theme} from '@kepler.gl/styles';
import {messages} from '@kepler.gl/localization';
import {keplerGlReducerCore as coreReducer} from '@kepler.gl/reducers';
import {keplerGlInit} from '@kepler.gl/actions';

Expand Down

0 comments on commit e5489e7

Please sign in to comment.