rchaput / acronyms

Adds support for Acronyms, and List of Acronyms, to Quarto documents.
GNU General Public License v3.0
20 stars 2 forks source link

Prepare the test suite for the next Quarto release #21

Closed rchaput closed 4 months ago

rchaput commented 4 months ago

Our tests fail against the "pre-release" of Quarto, because of the following error:

error: Uncaught SyntaxError: The requested module 'https://deno.land/std/streams/mod.ts' does not provide an export named 'writeAllSync'
import { writeAllSync } from "https://deno.land/std/streams/mod.ts";
         ^
    at <anonymous> (file:///home/runner/work/acronyms/acronyms/tests/run_tests.ts:14:10)

This is probably because the next version of Quarto embeds a new Deno version that no longer exports writeAllSync. Deno 2.x has indeed removed this function, see the following links for more details:

Deno has been a pain in the *** since the test suite was created. However, its big advantage is that it is embedded within Quarto, so we are certain that the script can be executed (the problem is that, depending on Deno's version, our imports might not work.....).

I see three potential alternatives: