Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
verytactical committed Jan 22, 2025
1 parent fab319a commit 6c6f488
Show file tree
Hide file tree
Showing 3 changed files with 460 additions and 511 deletions.
20 changes: 13 additions & 7 deletions src/cli/tact/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { makeCodegen, runCommand } from "../test-util.build";
import { join, normalize } from "path";

// disable tests on windows
const testWin = process.platform !== 'win32' ? test : test.skip;
const testWin = process.platform !== "win32" ? test : test.skip;

const tact = (args: string) => {
const tactPath = normalize(
Expand Down Expand Up @@ -68,7 +68,7 @@ describe("tact foo.tact", () => {
},
);

testWin.skip.each(badContracts)(
test.skip.each(badContracts)(
"Compilation of broken contract contains stacktrace with --verbose 2 (%s)",
async (name, code) => {
const result = await tact(
Expand Down Expand Up @@ -114,12 +114,18 @@ describe("tact foo.tact", () => {
expect(result).toMatchObject({ kind: "exited", code: 0 });
});

testWin("Check single-contract compilation with --with-decompilation", async () => {
const path = await codegen.contract(`single-decompile`, goodContract);
const result = await tact(`--with-decompilation ${path}`);
testWin(
"Check single-contract compilation with --with-decompilation",
async () => {
const path = await codegen.contract(
`single-decompile`,
goodContract,
);
const result = await tact(`--with-decompilation ${path}`);

expect(result).toMatchObject({ kind: "exited", code: 0 });
});
expect(result).toMatchObject({ kind: "exited", code: 0 });
},
);
});

describe("tact --config config.json", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/unboc/e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { join, normalize } from "path";
import { makeCodegen, runCommand } from "../test-util.build";

// disable tests on windows
const testWin = process.platform !== 'win32' ? test : test.skip;
const testWin = process.platform !== "win32" ? test : test.skip;

const tact = (args: string) => {
const tactPath = normalize(
Expand Down
Loading

0 comments on commit 6c6f488

Please sign in to comment.