@hyper-graph/jest
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.0 • Public • Published

    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();
      }
    }

    Keywords

    none

    Install

    npm i @hyper-graph/jest

    DownloadsWeekly Downloads

    32

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    16.3 kB

    Total Files

    33

    Last publish

    Collaborators

    • tsapko3628