create-broadcast-app
Version:
Create a NextGen TV broadcast app with one command
26 lines (21 loc) • 577 B
text/typescript
import App from './App';
it('reads a typescript file with no syntax error', () => {
const app = new App();
expect(App.foo.bar).toBe(true);
expect(App.foo.baz!.n).toBe(123);
expect(app.n).toBe(123);
});
it('supports decorators', () => {
expect((App as any).annotated).toBe(true);
const app = new App();
expect(app.decorated).toBe(42);
});
it('supports loading modules with baseUrl', () => {
const app = new App();
expect(app.users).toEqual([
{ id: 1, name: '1' },
{ id: 2, name: '2' },
{ id: 3, name: '3' },
{ id: 4, name: '4' },
]);
});