[Pkg-javascript-devel] Bug#1001526: On node-svgo
Pirate Praveen
praveen at onenetbeyond.org
Sat Dec 11 15:21:05 GMT 2021
On ശ, ഡിസം 11 2021 at 01:48:18 വൈകു +0100 +0100,
Julien Puydt <julien.puydt at gmail.com> wrote:
> Hi,
>
> Le samedi 11 décembre 2021 à 13:24 +0100, Yadd a écrit :
>>
>> echo -n require > debian/tests/pkg-js/SKIP
>
> Good one!
>
> How does one test an import-able module?
Create test.mjs as
import {loadJsonFile} from 'load-json-file';
node test.mjs
or more generic
import * as loadJSONFile from 'load-json-file';
or even simpler
import 'load-json-file';
More information about the Pkg-javascript-devel
mailing list