We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We should create integration tests for elf-cam. What we want to test here is if the generated package can be used as promised.
First step run
wasm-pack build --target nodejs
This generates ./pkg folder with the complete package which we can import in javascript/typescript.
./pkg
import {} from './pkg/'
If we write the tests in typescript we can also test the generated types easily.
This is the example I used for manual testing:
import { readFileSync } from "fs"; import { detect, Platform } from "./pkg/binary-info.js"; const buffer = readFileSync("./tests/data/nsd_3.0.2_Darwin_arm64"); const x = detect(buffer); console.log(x); console.log(x.platform, x.arch, x.runtime); console.log(x.platform === Platform.Darwin);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We should create integration tests for elf-cam. What we want to test here is if the generated package can be used as promised.
First step run
This generates
./pkg
folder with the complete package which we can import in javascript/typescript.If we write the tests in typescript we can also test the generated types easily.
This is the example I used for manual testing:
The text was updated successfully, but these errors were encountered: