Add TS tests tooling (#661)

* install test dependencies

* change config for tests

* fix linter failing tests

* add basic test file

* add custom element registration to test

* update dependencies

* add jest config file

* fix test calls on makefile and minor fix on test

* update local npm version

* clean testm file
This commit is contained in:
Fabio Pliger
2022-08-16 16:39:42 -05:00
committed by GitHub
parent 8275aa2810
commit 8aba271a42
7 changed files with 8964 additions and 21 deletions

View File

@@ -0,0 +1,16 @@
import 'jest';
import { PyRepl } from '../../src/components/pyrepl';
customElements.define('py-repl', PyRepl);
describe('PyRepl', () => {
let instance: PyRepl;
beforeEach(() => {
instance = new PyRepl();
});
it('should get the current Repl to just instantiate', async () => {
expect(instance).toBeInstanceOf(PyRepl);
});
});