Commit Graph

8 Commits

Author SHA1 Message Date
Akin a4d877b967
Feature/upgrade typescript (#2618)
Upgrade typescript to v3.1 & tslint (was dependent on some deprecated methods of the old version of ts) also fix associated type errors

Next up Im gonna try to use the project references feature of ts 3.0 to see if building all the various oni sub-projects can be simplified
2018-10-08 21:19:28 +01:00
Bryan Phelps 16c2eb508a
Browser: Fix scroll key binding conflict (#2239)
* Check for webview focus before running command on webview

* Fix browser path

* Hook up active tag management for the browser layer

* Fix lint issues
2018-06-18 18:09:12 -07:00
Bryan Phelps e17bbba10d
Hook up textarea to use sneak mode (#1907) 2018-03-23 16:36:31 -07:00
Bryan Phelps df35249358
Allowing sneak to text input boxes (#1895) 2018-03-22 21:58:57 -07:00
Bryan Phelps 88dd767c39
Bugfix - Sneak: Don't show sneak hints for elements outside the window view (#1884)
* Filter out sneaks that are outside of the viewport

* Filter sneak rectangles

* Fix regression in building the browser hook

* Don't add invisible elements to sneak in the browser window

* Update test with case for filtering
2018-03-22 18:16:11 -07:00
Akin 7cccd05ef9 Feature/add enzyme testing infrastructure (#1552)
* add jest codemod

* add components test and tweak tsconfig.test.json

* [wip] add unit tests for react components

* configure tests for ui tweak command so tests are found

* add commandline unit test

* change test name

* tweak path for tsx... again

* rename test again not catching tsx, add babel register

* add browser/test/components/

* move test files...

* add initial enzyme and jest config for unit tests

* add types for redux mock store

* add snapshots dir

* fix state structure in tests

* really fix state structure

* add react tests to unit

* remove unused setup file

* remove unneeded deps carelessly left behind

* fix yarn lock

* add exclusion for jest types

* add exclusion for jest types in browser config

* specify node modules types for jest

* exclude jest types in tsconfig

* add jest types to exclusion in tsconfig

* try using name jest in exclusion array

* retry node_modules/@types/jest

* exclude tests folder

* try without jest types

* try glob in exclude

* remove automatic global types specify mocha types in test folder

* ignore ui tests in tsconfig

* move jest tests to ui folder

* add jest tsconfig, mocks and minimal typing for sudo-prompt

* fix lint errors

* fix lint errors

* fix missing if filter in config change

* attempts to fix module resolution issues

* add mocks for dependencies

* add mock files for utitility persistent settings and config

* disable automatic global types in webview tsconfig

* fill out webview tsconfig

* alphabetize imports in browser view

* add command to test react components to package

* revert irrelevant changes to tsconfigs

* add a few extra tests

* fix typo rerun tests

* add quick info snapshot test

* join lines in docs test with os.eol

* add jest.config.ts and remove settings from package json

* fix some shuffling in unrelated files

* add config to collect coverage
2018-03-17 13:40:28 -07:00
Bryan Phelps 92d3f9ab3e
Browser: Sneak integration (#1699)
* Start hooking up sneak integration

* Hook up interop with embedded script

* Add sneak integration to browser window
2018-03-02 18:07:12 -08:00
Bryan Phelps 2a4a9fa03e
[WIP] Browser: Initial preload script (#1691)
* Add webview_preload script

* Add debug command for browser window

* Fix wiring up of props
2018-03-02 09:51:41 -08:00