Skip to content

Commit

Permalink
fix(tests): increase transpiled code char limit
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Adossi <[email protected]>
  • Loading branch information
vados-cosmonic committed Feb 4, 2025
1 parent 274021c commit b7a47e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ import { platform } from "node:process";

const isWindows = platform === "win32";

// - (2025/02/04) incrased due to incoming implementations of async and new flush impl
const FLAVORFUL_WASM_TRANSPILED_CODE_CHAR_LIMIT = 28_500;

export async function apiTest(_fixtures) {
suite("API", () => {
test("Transpile", async () => {
Expand Down Expand Up @@ -46,7 +49,7 @@ export async function apiTest(_fixtures) {
strictEqual(imports.length, 4);
strictEqual(exports.length, 3);
deepStrictEqual(exports[0], ["test", "instance"]);
ok(files[name + ".js"].length < 28_000);
ok(files[name + ".js"].length < FLAVORFUL_WASM_TRANSPILED_CODE_CHAR_LIMIT);
});

test("Transpile to JS", async () => {
Expand Down

0 comments on commit b7a47e9

Please sign in to comment.