From b1b80d9ec372954a3cbcb63fe24dab574ba37b02 Mon Sep 17 00:00:00 2001 From: verytactical <186486509+verytactical@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:05:31 +0400 Subject: [PATCH] fix: do not run tests on macos --- jest-ci.config.js | 10 ---------- src/cli/tact/e2e.spec.ts | 3 ++- src/cli/unboc/e2e.spec.ts | 3 ++- src/test/e2e-emulated/getters.spec.ts | 3 +++ .../map-tests/map-int-limits.spec.ts.template | 3 +++ .../map-tests/map-properties.spec.ts.template | 3 +++ 6 files changed, 13 insertions(+), 12 deletions(-) diff --git a/jest-ci.config.js b/jest-ci.config.js index e25cfdc98..8d813acdc 100644 --- a/jest-ci.config.js +++ b/jest-ci.config.js @@ -1,16 +1,6 @@ const mainConfig = require("./jest.config"); -const testPathIgnorePatterns = - process.platform === "darwin" // due to limited resources we do not want to run e2e tests for the maps - ? [ - ...(mainConfig.testPathIgnorePatterns || []), - "src/test/e2e-emulated/map-tests/build/*", - "src/test/e2e-emulated/getters.spec.ts", - ] - : mainConfig.testPathIgnorePatterns; - module.exports = { ...mainConfig, - testPathIgnorePatterns, maxWorkers: "2", }; diff --git a/src/cli/tact/e2e.spec.ts b/src/cli/tact/e2e.spec.ts index 50c609d27..06efab4d7 100644 --- a/src/cli/tact/e2e.spec.ts +++ b/src/cli/tact/e2e.spec.ts @@ -3,7 +3,8 @@ 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" && process.env.CI ? test.skip : test; const tact = (args: string) => { const tactPath = normalize( diff --git a/src/cli/unboc/e2e.spec.ts b/src/cli/unboc/e2e.spec.ts index 2331e9df7..b5bfefb1c 100644 --- a/src/cli/unboc/e2e.spec.ts +++ b/src/cli/unboc/e2e.spec.ts @@ -2,7 +2,8 @@ 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" && process.env.CI ? test.skip : test; const tact = (args: string) => { const tactPath = normalize( diff --git a/src/test/e2e-emulated/getters.spec.ts b/src/test/e2e-emulated/getters.spec.ts index 341307ed4..aff8dd7c5 100644 --- a/src/test/e2e-emulated/getters.spec.ts +++ b/src/test/e2e-emulated/getters.spec.ts @@ -3,6 +3,9 @@ import { Blockchain, SandboxContract, TreasuryContract } from "@ton/sandbox"; import { Test, Test_getterMapping } from "./contracts/output/getters_Test"; import "@ton/test-utils"; +// disable tests on MacOS +const it = process.platform === "darwin" && process.env.CI ? test.skip : test; + describe("getters", () => { let blockchain: Blockchain; let treasure: SandboxContract; diff --git a/src/test/e2e-emulated/map-tests/map-int-limits.spec.ts.template b/src/test/e2e-emulated/map-tests/map-int-limits.spec.ts.template index 65f4f0508..634b2dd2e 100644 --- a/src/test/e2e-emulated/map-tests/map-int-limits.spec.ts.template +++ b/src/test/e2e-emulated/map-tests/map-int-limits.spec.ts.template @@ -3,6 +3,9 @@ import { Blockchain, SandboxContract } from "@ton/sandbox"; import { MapIntLimitTester } from "./test_MapIntLimitTester"; import "@ton/test-utils"; +// disable tests on MacOS +const it = process.platform === "darwin" && process.env.CI ? test.skip : test; + let contract: SandboxContract; beforeAll(async () => { diff --git a/src/test/e2e-emulated/map-tests/map-properties.spec.ts.template b/src/test/e2e-emulated/map-tests/map-properties.spec.ts.template index 2f04a314a..a9a15725f 100644 --- a/src/test/e2e-emulated/map-tests/map-properties.spec.ts.template +++ b/src/test/e2e-emulated/map-tests/map-properties.spec.ts.template @@ -7,6 +7,9 @@ import { } from "./test_MapPropertiesTester"; import "@ton/test-utils"; +// disable tests on MacOS +const it = process.platform === "darwin" && process.env.CI ? test.skip : test; + const key: KeyData = { $$type: "KeyData", _1: KEY_1_PLACEHOLDER,