@hyper-graph/jest
v3.0.0
Published
Because describing test suites with jest isn't convenient. ## Before
Downloads
7
Readme
Hyper-graph jest
Why
Because describing test suites with jest isn't convenient.
Before
describe('test suite name', () => {
let app;
beforeAll(() => {
app = initApp();
});
test('test name', () => {
app.doSomething();
});
});
Now
@RunTestSuite()
class TestSuiteName extends TestSuite {
private app: App;
async setUp() {
this.app = await initApp();
}
@test()
async testName() {
await this.app.doSomething();
}
}