scroll/src/bun/test_base.ts

20 lines
524 B
JavaScript
Raw Normal View History

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';
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-03 11:59:58 -04:00
}
export default BunTestBase;