diff --git a/.eslintrc.json b/.eslintrc.json index b88534848..7a95b537a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -20,6 +20,10 @@ { "selector": "CallExpression[callee.object.object.callee.name='tag'][callee.property.name='only']", "message": "Unexpected exclusive mocha test with tag().suite.only() or tag().test.only()" + }, + { + "selector": "ImportExpression", + "message": "Dynamic imports using 'import()' are not allowed. Use static imports at the top of the file instead." } ], "@typescript-eslint/no-floating-promises": ["warn", { "checkThenables": true }], diff --git a/test/unit-tests/toolchain/BuildFlags.test.ts b/test/unit-tests/toolchain/BuildFlags.test.ts index 10b833e6b..d8c2d29c6 100644 --- a/test/unit-tests/toolchain/BuildFlags.test.ts +++ b/test/unit-tests/toolchain/BuildFlags.test.ts @@ -571,7 +571,6 @@ suite("BuildFlags Test Suite", () => { // Mock execSwift to throw an error execSwiftSpy = sinon.spy(() => Promise.reject(new Error("Command failed"))); - const utilities = await import("@src/utilities/utilities"); sinon.replace(utilities, "execSwift", execSwiftSpy); const log = instance(logger);