Skip to content

Commit

Permalink
test(browser): pull version info out of different field
Browse files Browse the repository at this point in the history
in cfe1f2a (#4066) we removed
`dependencies.json` and the object that would be written to
`stencil.js`. this commit fixes a test so that this quasi-exported
property gets pulled from the available location
  • Loading branch information
rwaskiewicz committed Feb 28, 2023
1 parent 27258ab commit 7b3393b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/browser-compile/src/utils/load-deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ export const loadDeps = async (resolveLookup: Map<string, string>, fs: Map<strin

await loadDep('/@stencil/core/compiler/stencil.js');

const rollupDep = stencil.dependencies.find((dep: any) => dep.name === 'rollup');
await loadDep(`https://cdn.jsdelivr.net/npm/rollup@${rollupDep.version}/dist/rollup.browser.js`);
const rollupDep: [string, unknown] = Object.entries(stencil.versions).find(
(dep: [string, unknown]) => dep[0] === 'rollup'
);
await loadDep(`https://cdn.jsdelivr.net/npm/rollup@${rollupDep[1]}/dist/rollup.browser.js`);

const fetchResults = await Promise.all([
await fetch('/@stencil/core/internal/client/index.js'),
Expand Down

0 comments on commit 7b3393b

Please sign in to comment.