Skip to content

Commit

Permalink
Prepend file:/// to addon resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Mar 13, 2024
1 parent 8dfaac0 commit c2d1490
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ test('load .cjs with .bare import', async (t) => {

const resolutions = {
[root + '/index.cjs']: {
'/native.bare': __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare' // eslint-disable-line n/no-path-concat
'/native.bare': 'file:///' + __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare'
}
}

Expand All @@ -744,7 +744,7 @@ test('load .cjs with dynamic .bare import', async (t) => {

const resolutions = {
[root + '/index.cjs']: {
'/native.bare': __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare' // eslint-disable-line n/no-path-concat
'/native.bare': 'file:///' + __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare'
}
}

Expand All @@ -770,7 +770,7 @@ test('load .mjs with .bare import', async (t) => {

const resolutions = {
[root + '/index.mjs']: {
'/native.bare': __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare' // eslint-disable-line n/no-path-concat
'/native.bare': 'file:///' + __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare'
}
}

Expand All @@ -796,7 +796,7 @@ test('load .mjs with dynamic .bare import', async (t) => {

const resolutions = {
[root + '/index.mjs']: {
'/native.bare': __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare' // eslint-disable-line n/no-path-concat
'/native.bare': 'file:///' + __dirname + '/prebuilds/' + Bare.Addon.host + '/bare-module.bare'
}
}

Expand Down

0 comments on commit c2d1490

Please sign in to comment.