mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 17:42:41 +08:00
a3ee06e374
* Optimize unit test; support overriding constants in per-test-suite
15 lines
290 B
TypeScript
15 lines
290 B
TypeScript
|
|
export interface TestSuiteConfig {
|
|
constantOverrides?: Record<string, boolean>;
|
|
}
|
|
|
|
declare global {
|
|
namespace __cc_test__ {
|
|
let currentTestSuiteConfig: TestSuiteConfig;
|
|
}
|
|
}
|
|
|
|
export function getCurrentTestSuiteConfig() {
|
|
return __cc_test__.currentTestSuiteConfig;
|
|
}
|