spiegel-keyman/core/tests/unit/wasm/meson.build
Eberhard Beilharz fbfa3b5cc2
feat(core): add unit tests for the WASM version of Core API
Note that this requires adding an additional `km-core-node.mjs`
module (since the tests are run with node). We can't create one that
would work for both web and node - if we do trying to load the `km-core.js`
fails with `km-core.mjs: Could not resolve import "module".`
2025-01-20 18:22:56 +01:00

5 lines
171 B
Meson

if cpp_compiler.get_id() == 'emscripten'
npm = find_program('npm', required: true)
test('wasm-tests', npm, args: ['test'], workdir: meson.current_source_dir())
endif