2023-11-03 11:59:58 -04:00
|
|
|
/**
|
|
|
|
* Adapt the bun test interface to the shared testing interface
|
|
|
|
*/
|
2024-07-09 16:12:28 -04:00
|
|
|
import { describe, test } from 'bun:test';
|
2024-07-11 17:27:49 -04:00
|
|
|
import AbstractTestBase from '../common/runtime/test_base.ts';
|
|
|
|
class BunTestBase extends AbstractTestBase {
|
|
|
|
public static testSuite(testObj: any): void {
|
|
|
|
Object.keys(testObj).forEach((group) => {
|
|
|
|
describe(group, () => {
|
|
|
|
const groupObj = testObj[group];
|
|
|
|
Object.keys(groupObj).forEach((testName) => {
|
|
|
|
test(testName, groupObj[testName]);
|
|
|
|
});
|
2023-11-16 20:57:21 -05:00
|
|
|
});
|
|
|
|
});
|
2024-07-11 17:27:49 -04:00
|
|
|
}
|
2023-11-03 11:59:58 -04:00
|
|
|
}
|
|
|
|
|
2023-11-16 20:57:21 -05:00
|
|
|
export default BunTestBase;
|