influxdb/ui
Andrew Watkins 854b2a43eb
test(ui): component integration testing w/ mock redux store (#11577)
* wip: introduce connected async component test

* test(query-builder): mock findBuckets

* test(ui): add ability to pass arbitrary state to renderWithRedux

* test(ui/queryBuilder): click bucket and tag

* test(ui/queryBuilder): use regex matchers to query all

* test(ui/queryBuilder): it can click a tag value

* chore: change id to ID

* chore: move QueryBuilderFetcher

* test(ui/queryBuilder): try waiting for dropdown-items

* test(ui/queryBuilder): move initial state out of beforeEach

* test(ui/queryBuilder): get by bucket name

* wip

* test: put back to default

* test: remove await
2019-01-25 14:08:57 -08:00
..
assets/images Update final onboarding step to offer next step options to the user (#11145) 2019-01-16 12:16:56 -08:00
mocks test(ui): component integration testing w/ mock redux store (#11577) 2019-01-25 14:08:57 -08:00
src test(ui): component integration testing w/ mock redux store (#11577) 2019-01-25 14:08:57 -08:00
.browserslistrc chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
Makefile Remove yarn in favor of just npm 2018-11-30 17:02:31 -08:00
README.md Remove yarn in favor of just npm 2018-11-30 17:02:31 -08:00
index.d.ts chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
jestSetup.ts test(ui): component integration testing w/ mock redux store (#11577) 2019-01-25 14:08:57 -08:00
package-lock.json test(ui): component integration testing w/ mock redux store (#11577) 2019-01-25 14:08:57 -08:00
package.json test(ui): component integration testing w/ mock redux store (#11577) 2019-01-25 14:08:57 -08:00
testSetup.ts chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
tsconfig.json chore(ui): move ui from chronograf/ui to ui 2018-10-29 14:00:54 -04:00
tslint.json Implement new visual query builder designs 2019-01-07 10:58:18 -08:00
yarn.lock Add ability to create notes on a dashboard 2018-11-29 16:41:40 -08:00

README.md

Packages

Adding new packages

To add a new package, run

npm i packageName

Adding devDependency

npm i packageName -D

Updating a package

First, run

npm outdated

... to determine which packages may need upgrading.

We really should not upgrade all packages at once, but, one at a time and make darn sure to test.

To upgrade a single package named packageName:

npm upgrade packageName

Testing

Tests can be run via command line with npm test, from within the /ui directory. For more detailed reporting, use yarn test -- --reporters=verbose.