Skip to content

Commit

Permalink
test: use relative path for esm config
Browse files Browse the repository at this point in the history
  • Loading branch information
the-spyke committed Feb 28, 2020
1 parent 15fdf06 commit be4087f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/loader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,16 @@ test.cb("should load ESM config files", t => {
loader: babelLoader,
exclude: /node_modules/,
options: {
extends: path.resolve(__dirname, "fixtures/babelrc.mjs"),
// Use relative path starting with a dot to satisfy module loader.
// https://github.com/nodejs/node/issues/31710
// File urls doesn't work with current [email protected] package.
extends:
"." +
path.sep +
path.relative(
process.cwd(),
path.resolve(__dirname, "fixtures/babelrc.mjs"),
),
babelrc: false,
},
},
Expand Down

0 comments on commit be4087f

Please sign in to comment.