Skip to content

Commit

Permalink
Fix aliases for node tests (#8155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Oct 3, 2023
1 parent bacf06b commit 1e170e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ocularrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const config = {
// ts-node has experimental ESM support, but there's no reliable module aliasing
// See https://github.com/dividab/tsconfig-paths/issues/122
nodeAliases: {
'@jupyter-widgets/base': `${packageRoot}/test/modules/jupyter-widget/dummy-jupyter-widgets-base.js`,
'@jupyter-widgets/base': `${packageRoot}/test/modules/jupyter-widget/dummy-jupyter-widgets-base.ts`,
'@mapbox/tiny-sdf': `${nodeModules}/@mapbox/tiny-sdf/index.cjs`,
'd3-array': `${nodeModules}/d3-array/dist/d3-array.cjs`,
'd3-color': `${nodeModules}/d3-color/dist/d3-color.cjs`,
Expand All @@ -58,7 +58,7 @@ const config = {
'd3-scale': `${nodeModules}/d3-scale/dist/d3-scale.cjs`,
'd3-time': `${nodeModules}/d3-time/dist/d3-time.cjs`,
'd3-time-format': `${nodeModules}/d3-time-format/dist/d3-time-format.cjs`,
'mapbox-gl': `${packageRoot}/test/modules/jupyter-widget/dummy-mapbox-gl.js`,
'mapbox-gl': `${packageRoot}/test/modules/jupyter-widget/dummy-mapbox-gl.ts`,
'react-map-gl/dist/esm/mapbox/mapbox': `${nodeModules}/react-map-gl/dist/es5/mapbox/mapbox.js`
},

Expand Down

0 comments on commit 1e170e6

Please sign in to comment.