Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato committed Mar 14, 2024
1 parent 8a565bb commit 7e62735
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 87 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
# Test on the latest stable, and nightly
deno: [v1.x, canary]
deno: [1.x, nightly]
os: [macOS-latest, windows-latest, ubuntu-latest]

steps:
Expand All @@ -24,7 +24,9 @@ jobs:
- name: Setup Deno
uses: denoland/setup-deno@main
with:
deno-version: ${{ matrix.deno }}
# TODO: revert back to ${{ matrix.deno }} once https://github.com/denoland/deno/issues/22926 is fixed
# deno-version: ${{ matrix.deno }}
deno-version: v1.40.3

- run: deno --version

Expand Down
2 changes: 1 addition & 1 deletion src/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class InfoCache {
this.#options,
);
for (const module of modules) {
if (specifier.length > 1 && module.specifier === specifier) continue;
if (specifiers.length !== 1 && module.specifier === specifier) continue;
this.#modules.set(module.specifier, module);
}
for (const [from, to] of Object.entries(redirects)) {
Expand Down
89 changes: 5 additions & 84 deletions testdata/jsr/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e62735

Please sign in to comment.