production-tests
7nik 2 months ago
parent f5ea3ad8d9
commit 872fa3a66c

@ -1,6 +1,6 @@
<script>
import { DEV } from "esm-env";
console.info("prod", DEV)
if (DEV) {
throw new Error("Dev-only code must not run");
}

@ -41,7 +41,6 @@ export function suite<Test extends BaseTest>(fn: (config: Test, test_dir: string
}
});
if (production_tests.length) {
let mocked = false;
for (const [it, name, test] of production_tests) {
it(name, () => {
@ -56,7 +55,6 @@ export function suite<Test extends BaseTest>(fn: (config: Test, test_dir: string
});
}
}
}
};
}
@ -99,7 +97,6 @@ export function suite_with_variants<Test extends BaseTest, Variants extends stri
}
});
if (production_tests.length) {
let mocked = false;
for (const [it, name, test] of production_tests) {
it(name, () => {
@ -114,7 +111,6 @@ export function suite_with_variants<Test extends BaseTest, Variants extends stri
});
}
}
}
};
}

Loading…
Cancel
Save