From 7f849c825221d50381457de28b06024b3bf69d87 Mon Sep 17 00:00:00 2001 From: Chris McGee Date: Tue, 14 Mar 2017 16:02:51 -0400 Subject: [PATCH] cleanup test directory layout --- package.json | 2 +- test/{ => app}/actions/async.test.js | 22 +++++++++---------- test/{ => app}/actions/sync.test.js | 18 +++++++-------- test/{ => app}/actions/utils.test.js | 6 ++--- test/{actions => app/components}/.gitkeep | 0 test/{components => app/containers}/.gitkeep | 0 test/{ => app}/reducers/misc.test.js | 14 ++++++------ test/{ => app}/reducers/uploads.test.js | 6 ++--- test/{ => app}/reducers/users.test.js | 4 ++-- test/containers/.gitkeep | 0 test/{node => lib}/animas/testAnimasDriver.js | 0 .../animas/testAnimasSimulator.js | 0 .../carelink/basal/scheduled/normal/input.csv | 0 .../basal/scheduled/normal/output.json | 0 .../carelink/basal/temp/percent/input.csv | 0 .../carelink/basal/temp/percent/output.json | 0 .../carelink/basal/temp/rate/input.csv | 0 .../carelink/basal/temp/rate/output.json | 0 .../carelink/bolus/dual/noWizard/input.csv | 0 .../carelink/bolus/dual/noWizard/output.json | 0 .../bolus/dual/noWizardNoNormal/input.csv | 0 .../bolus/dual/noWizardNoNormal/output.json | 0 .../withMultiWizardOutOfSequence/input.csv | 0 .../withMultiWizardOutOfSequence/output.json | 0 .../carelink/bolus/dual/withWizard/input.csv | 0 .../bolus/dual/withWizard/output.json | 0 .../input.csv | 0 .../output.json | 0 .../bolus/dual/withWizardNoNormal/input.csv | 0 .../bolus/dual/withWizardNoNormal/output.json | 0 .../dual/withWizardOutOfSequence/input.csv | 0 .../dual/withWizardOutOfSequence/output.json | 0 .../carelink/bolus/normal/noWizard/input.csv | 0 .../bolus/normal/noWizard/output.json | 0 .../normal/noWizardInterrupted/input.csv | 0 .../normal/noWizardInterrupted/output.json | 0 .../bolus/normal/withOverride/input.csv | 0 .../bolus/normal/withOverride/output.json | 0 .../bolus/normal/withWizard/input.csv | 0 .../bolus/normal/withWizard/output.json | 0 .../normal/withWizardInterveningBG/input.csv | 0 .../withWizardInterveningBG/output.json | 0 .../carelink/bolus/square/noWizard/input.csv | 0 .../bolus/square/noWizard/output.json | 0 .../square/noWizardInterrupted/input.csv | 0 .../square/noWizardInterrupted/output.json | 0 .../bolus/square/withWizard/input.csv | 0 .../bolus/square/withWizard/output.json | 0 test/{node => lib}/carelink/cbg/input.csv | 0 test/{node => lib}/carelink/cbg/output.json | 0 test/{node => lib}/carelink/mockSimulator.js | 0 .../carelink/overlaps/no-overlap.csv | 0 .../carelink/overlaps/overlap.csv | 0 .../carelink/overlaps/unsupported.csv | 0 .../carelink/settings/noChanges/input.csv | 0 .../carelink/settings/noChanges/output.json | 0 .../carelink/settings/withChanges/input.csv | 0 .../carelink/settings/withChanges/output.json | 0 .../settings/withSameTimeChanges/input.csv | 0 .../settings/withSameTimeChanges/output.json | 0 test/{node => lib}/carelink/smbg/input.csv | 0 test/{node => lib}/carelink/smbg/output.json | 0 test/{node => lib}/carelink/suspend/input.csv | 0 .../carelink/suspend/output.json | 0 .../carelink/testCarelinkSimulator.js | 0 test/{node => lib}/carelink/testCommon.js | 0 test/{node => lib}/carelink/testDriver.js | 0 .../carelink/testRemoveOverlaps.js | 0 test/{node => lib}/carelink/testSerial.js | 0 .../{browser => lib}/core/personUtils.test.js | 0 .../core}/polyfill/function.prototype.bind.js | 0 .../dexcom/testUserSettingsChanges.js | 0 test/{browser => lib}/fixtures/nonpwd.json | 0 test/{browser => lib}/fixtures/pwd.json | 0 .../insulet/testInsuletSimulator.js | 0 test/{node => lib}/insulet/testLogic.js | 0 .../tandem/testTandemSimulator.js | 0 test/{node => lib}/testCommonSimulations.js | 0 test/{node => lib}/testDriverManager.js | 0 test/{node => lib}/testHidDevice.js | 0 test/{node => lib}/testLocalStore.js | 0 test/{node => lib}/testObjectBuilder.js | 0 test/{node => lib}/testSerialDevice.js | 0 test/{node => lib}/testStatusManager.js | 0 test/{node => lib}/testStruct.js | 0 .../testTimezoneOffsetUtil.js | 0 test/reducers/.gitkeep | 0 87 files changed, 36 insertions(+), 36 deletions(-) rename test/{ => app}/actions/async.test.js (99%) rename test/{ => app}/actions/sync.test.js (98%) rename test/{ => app}/actions/utils.test.js (97%) rename test/{actions => app/components}/.gitkeep (100%) rename test/{components => app/containers}/.gitkeep (100%) rename test/{ => app}/reducers/misc.test.js (97%) rename test/{ => app}/reducers/uploads.test.js (99%) rename test/{ => app}/reducers/users.test.js (99%) delete mode 100644 test/containers/.gitkeep rename test/{node => lib}/animas/testAnimasDriver.js (100%) rename test/{node => lib}/animas/testAnimasSimulator.js (100%) rename test/{node => lib}/carelink/basal/scheduled/normal/input.csv (100%) rename test/{node => lib}/carelink/basal/scheduled/normal/output.json (100%) rename test/{node => lib}/carelink/basal/temp/percent/input.csv (100%) rename test/{node => lib}/carelink/basal/temp/percent/output.json (100%) rename test/{node => lib}/carelink/basal/temp/rate/input.csv (100%) rename test/{node => lib}/carelink/basal/temp/rate/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/noWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/noWizard/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/noWizardNoNormal/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/noWizardNoNormal/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/withMultiWizardOutOfSequence/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/withMultiWizardOutOfSequence/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/withWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/withWizard/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardInterruptedWithOverride/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardInterruptedWithOverride/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardNoNormal/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardNoNormal/output.json (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardOutOfSequence/input.csv (100%) rename test/{node => lib}/carelink/bolus/dual/withWizardOutOfSequence/output.json (100%) rename test/{node => lib}/carelink/bolus/normal/noWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/normal/noWizard/output.json (100%) rename test/{node => lib}/carelink/bolus/normal/noWizardInterrupted/input.csv (100%) rename test/{node => lib}/carelink/bolus/normal/noWizardInterrupted/output.json (100%) rename test/{node => lib}/carelink/bolus/normal/withOverride/input.csv (100%) rename test/{node => lib}/carelink/bolus/normal/withOverride/output.json (100%) rename test/{node => lib}/carelink/bolus/normal/withWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/normal/withWizard/output.json (100%) rename test/{node => lib}/carelink/bolus/normal/withWizardInterveningBG/input.csv (100%) rename test/{node => lib}/carelink/bolus/normal/withWizardInterveningBG/output.json (100%) rename test/{node => lib}/carelink/bolus/square/noWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/square/noWizard/output.json (100%) rename test/{node => lib}/carelink/bolus/square/noWizardInterrupted/input.csv (100%) rename test/{node => lib}/carelink/bolus/square/noWizardInterrupted/output.json (100%) rename test/{node => lib}/carelink/bolus/square/withWizard/input.csv (100%) rename test/{node => lib}/carelink/bolus/square/withWizard/output.json (100%) rename test/{node => lib}/carelink/cbg/input.csv (100%) rename test/{node => lib}/carelink/cbg/output.json (100%) rename test/{node => lib}/carelink/mockSimulator.js (100%) rename test/{node => lib}/carelink/overlaps/no-overlap.csv (100%) rename test/{node => lib}/carelink/overlaps/overlap.csv (100%) rename test/{node => lib}/carelink/overlaps/unsupported.csv (100%) rename test/{node => lib}/carelink/settings/noChanges/input.csv (100%) rename test/{node => lib}/carelink/settings/noChanges/output.json (100%) rename test/{node => lib}/carelink/settings/withChanges/input.csv (100%) rename test/{node => lib}/carelink/settings/withChanges/output.json (100%) rename test/{node => lib}/carelink/settings/withSameTimeChanges/input.csv (100%) rename test/{node => lib}/carelink/settings/withSameTimeChanges/output.json (100%) rename test/{node => lib}/carelink/smbg/input.csv (100%) rename test/{node => lib}/carelink/smbg/output.json (100%) rename test/{node => lib}/carelink/suspend/input.csv (100%) rename test/{node => lib}/carelink/suspend/output.json (100%) rename test/{node => lib}/carelink/testCarelinkSimulator.js (100%) rename test/{node => lib}/carelink/testCommon.js (100%) rename test/{node => lib}/carelink/testDriver.js (100%) rename test/{node => lib}/carelink/testRemoveOverlaps.js (100%) rename test/{node => lib}/carelink/testSerial.js (100%) rename test/{browser => lib}/core/personUtils.test.js (100%) rename test/{browser => lib/core}/polyfill/function.prototype.bind.js (100%) rename test/{node => lib}/dexcom/testUserSettingsChanges.js (100%) rename test/{browser => lib}/fixtures/nonpwd.json (100%) rename test/{browser => lib}/fixtures/pwd.json (100%) rename test/{node => lib}/insulet/testInsuletSimulator.js (100%) rename test/{node => lib}/insulet/testLogic.js (100%) rename test/{node => lib}/tandem/testTandemSimulator.js (100%) rename test/{node => lib}/testCommonSimulations.js (100%) rename test/{node => lib}/testDriverManager.js (100%) rename test/{node => lib}/testHidDevice.js (100%) rename test/{node => lib}/testLocalStore.js (100%) rename test/{node => lib}/testObjectBuilder.js (100%) rename test/{node => lib}/testSerialDevice.js (100%) rename test/{node => lib}/testStatusManager.js (100%) rename test/{node => lib}/testStruct.js (100%) rename test/{browser => lib}/testTimezoneOffsetUtil.js (100%) delete mode 100644 test/reducers/.gitkeep diff --git a/package.json b/package.json index a5b52a6e2f..851808a96c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "scripts": { "build-docs": "./scripts/update-gh-pages.sh", "serve-docs": "./node_modules/.bin/gitbook serve", - "test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 electron-mocha --renderer --retries 2 --compilers js:babel-register --recursive test/**/*.js", + "test": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 electron-mocha --renderer --retries 2 --compilers js:babel-register --recursive test/", "test-debug": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --recursive --require ./test/setup.js test/**/*.js --inspect --debug-brk", "test-all": "npm run lint && npm run test && npm run build", "test-e2e": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=1 mocha --retries 2 --compilers js:babel-register --require ./test/setup.js ./test/e2e.js", diff --git a/test/actions/async.test.js b/test/app/actions/async.test.js similarity index 99% rename from test/actions/async.test.js rename to test/app/actions/async.test.js index a141fb42da..6cabdc4a86 100644 --- a/test/actions/async.test.js +++ b/test/app/actions/async.test.js @@ -23,19 +23,19 @@ import configureStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { expect } from 'chai'; -import * as actionSources from '../../app/constants/actionSources'; -import * as actionTypes from '../../app/constants/actionTypes'; -import * as metrics from '../../app/constants/metrics'; -import { pages, steps, urls } from '../../app/constants/otherConstants'; -import { UnsupportedError } from '../../app/utils/errors'; -import errorText from '../../app/constants/errors'; +import * as actionSources from '../../../app/constants/actionSources'; +import * as actionTypes from '../../../app/constants/actionTypes'; +import * as metrics from '../../../app/constants/metrics'; +import { pages, steps, urls } from '../../../app/constants/otherConstants'; +import { UnsupportedError } from '../../../app/utils/errors'; +import errorText from '../../../app/constants/errors'; -import * as asyncActions from '../../app/actions/async'; -import { __Rewire__, __ResetDependency__ } from '../../app/actions/async'; -import { getLoginErrorMessage, getLogoutErrorMessage, getUpdateProfileErrorMessage, getCreateCustodialAccountErrorMessage } from '../../app/utils/errors'; +import * as asyncActions from '../../../app/actions/async'; +import { __Rewire__, __ResetDependency__ } from '../../../app/actions/async'; +import { getLoginErrorMessage, getLogoutErrorMessage, getUpdateProfileErrorMessage, getCreateCustodialAccountErrorMessage } from '../../../app/utils/errors'; -let pwd = require('../browser/fixtures/pwd.json'); -let nonpwd = require('../browser/fixtures/nonpwd.json'); +let pwd = require('../../lib/fixtures/pwd.json'); +let nonpwd = require('../../lib/fixtures/nonpwd.json'); const middlewares = [thunk]; const mockStore = configureStore(middlewares); diff --git a/test/actions/sync.test.js b/test/app/actions/sync.test.js similarity index 98% rename from test/actions/sync.test.js rename to test/app/actions/sync.test.js index cf86dbce18..5f5d899beb 100644 --- a/test/actions/sync.test.js +++ b/test/app/actions/sync.test.js @@ -21,15 +21,15 @@ import _ from 'lodash'; import { isFSA } from 'flux-standard-action'; import { expect } from 'chai'; -import * as actionSources from '../../app/constants/actionSources'; -import * as actionTypes from '../../app/constants/actionTypes'; -import * as metrics from '../../app/constants/metrics'; -import { steps } from '../../app/constants/otherConstants'; - -import * as syncActions from '../../app/actions/sync'; -import { __Rewire__, __ResetDependency__ } from '../../app/actions/sync'; -import { UnsupportedError } from '../../app/utils/errors'; -import errorText from '../../app/constants/errors'; +import * as actionSources from '../../../app/constants/actionSources'; +import * as actionTypes from '../../../app/constants/actionTypes'; +import * as metrics from '../../../app/constants/metrics'; +import { steps } from '../../../app/constants/otherConstants'; + +import * as syncActions from '../../../app/actions/sync'; +import { __Rewire__, __ResetDependency__ } from '../../../app/actions/sync'; +import { UnsupportedError } from '../../../app/utils/errors'; +import errorText from '../../../app/constants/errors'; describe('Synchronous Actions', () => { describe('addTargetDevice', () => { diff --git a/test/actions/utils.test.js b/test/app/actions/utils.test.js similarity index 97% rename from test/actions/utils.test.js rename to test/app/actions/utils.test.js index c4bf7cd803..4b40c8cd9d 100644 --- a/test/actions/utils.test.js +++ b/test/app/actions/utils.test.js @@ -23,9 +23,9 @@ import { expect } from 'chai'; import configureStore from 'redux-mock-store'; -import errorText from '../../app/constants/errors'; -import * as utils from '../../app/actions/utils'; -import { addInfoToError } from '../../app/utils/errors'; +import errorText from '../../../app/constants/errors'; +import * as utils from '../../../app/actions/utils'; +import { addInfoToError } from '../../../app/utils/errors'; describe('utils', () => { describe('makeUploadCb', () => { diff --git a/test/actions/.gitkeep b/test/app/components/.gitkeep similarity index 100% rename from test/actions/.gitkeep rename to test/app/components/.gitkeep diff --git a/test/components/.gitkeep b/test/app/containers/.gitkeep similarity index 100% rename from test/components/.gitkeep rename to test/app/containers/.gitkeep diff --git a/test/reducers/misc.test.js b/test/app/reducers/misc.test.js similarity index 97% rename from test/reducers/misc.test.js rename to test/app/reducers/misc.test.js index de77cd4e76..1ad0d0e652 100644 --- a/test/reducers/misc.test.js +++ b/test/app/reducers/misc.test.js @@ -21,16 +21,16 @@ import _ from 'lodash'; import mutationTracker from 'object-invariant-test-helper'; import { expect } from 'chai'; -import * as actionTypes from '../../app/constants/actionTypes'; -import { pages, steps } from '../../app/constants/otherConstants'; -import * as misc from '../../app/reducers/misc'; +import * as actionTypes from '../../../app/constants/actionTypes'; +import { pages, steps } from '../../../app/constants/otherConstants'; +import * as misc from '../../../app/reducers/misc'; -import devices from '../../app/reducers/devices'; +import devices from '../../../app/reducers/devices'; -import { UnsupportedError } from '../../app/utils/errors'; +import { UnsupportedError } from '../../../app/utils/errors'; -let pwd = require('../browser/fixtures/pwd.json'); -let nonpwd = require('../browser/fixtures/nonpwd.json'); +let pwd = require('../../lib/fixtures/pwd.json'); +let nonpwd = require('../../lib/fixtures/nonpwd.json'); describe('misc reducers', () => { describe('devices', () => { diff --git a/test/reducers/uploads.test.js b/test/app/reducers/uploads.test.js similarity index 99% rename from test/reducers/uploads.test.js rename to test/app/reducers/uploads.test.js index 343977af45..105461c3fa 100644 --- a/test/reducers/uploads.test.js +++ b/test/app/reducers/uploads.test.js @@ -20,9 +20,9 @@ import _ from 'lodash'; import { expect } from 'chai'; -import * as actionTypes from '../../app/constants/actionTypes'; -import { steps } from '../../app/constants/otherConstants'; -import * as uploads from '../../app/reducers/uploads'; +import * as actionTypes from '../../../app/constants/actionTypes'; +import { steps } from '../../../app/constants/otherConstants'; +import * as uploads from '../../../app/reducers/uploads'; describe('uploads', () => { describe('uploadProgress', () => { diff --git a/test/reducers/users.test.js b/test/app/reducers/users.test.js similarity index 99% rename from test/reducers/users.test.js rename to test/app/reducers/users.test.js index 07d4307214..e53db9dcd8 100644 --- a/test/reducers/users.test.js +++ b/test/app/reducers/users.test.js @@ -21,8 +21,8 @@ import _ from 'lodash'; import mutationTracker from 'object-invariant-test-helper'; import { expect } from 'chai'; -import * as actionTypes from '../../app/constants/actionTypes'; -import * as users from '../../app/reducers/users'; +import * as actionTypes from '../../../app/constants/actionTypes'; +import * as users from '../../../app/reducers/users'; describe('users', () => { describe('allUsers', () => { diff --git a/test/containers/.gitkeep b/test/containers/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/node/animas/testAnimasDriver.js b/test/lib/animas/testAnimasDriver.js similarity index 100% rename from test/node/animas/testAnimasDriver.js rename to test/lib/animas/testAnimasDriver.js diff --git a/test/node/animas/testAnimasSimulator.js b/test/lib/animas/testAnimasSimulator.js similarity index 100% rename from test/node/animas/testAnimasSimulator.js rename to test/lib/animas/testAnimasSimulator.js diff --git a/test/node/carelink/basal/scheduled/normal/input.csv b/test/lib/carelink/basal/scheduled/normal/input.csv similarity index 100% rename from test/node/carelink/basal/scheduled/normal/input.csv rename to test/lib/carelink/basal/scheduled/normal/input.csv diff --git a/test/node/carelink/basal/scheduled/normal/output.json b/test/lib/carelink/basal/scheduled/normal/output.json similarity index 100% rename from test/node/carelink/basal/scheduled/normal/output.json rename to test/lib/carelink/basal/scheduled/normal/output.json diff --git a/test/node/carelink/basal/temp/percent/input.csv b/test/lib/carelink/basal/temp/percent/input.csv similarity index 100% rename from test/node/carelink/basal/temp/percent/input.csv rename to test/lib/carelink/basal/temp/percent/input.csv diff --git a/test/node/carelink/basal/temp/percent/output.json b/test/lib/carelink/basal/temp/percent/output.json similarity index 100% rename from test/node/carelink/basal/temp/percent/output.json rename to test/lib/carelink/basal/temp/percent/output.json diff --git a/test/node/carelink/basal/temp/rate/input.csv b/test/lib/carelink/basal/temp/rate/input.csv similarity index 100% rename from test/node/carelink/basal/temp/rate/input.csv rename to test/lib/carelink/basal/temp/rate/input.csv diff --git a/test/node/carelink/basal/temp/rate/output.json b/test/lib/carelink/basal/temp/rate/output.json similarity index 100% rename from test/node/carelink/basal/temp/rate/output.json rename to test/lib/carelink/basal/temp/rate/output.json diff --git a/test/node/carelink/bolus/dual/noWizard/input.csv b/test/lib/carelink/bolus/dual/noWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/noWizard/input.csv rename to test/lib/carelink/bolus/dual/noWizard/input.csv diff --git a/test/node/carelink/bolus/dual/noWizard/output.json b/test/lib/carelink/bolus/dual/noWizard/output.json similarity index 100% rename from test/node/carelink/bolus/dual/noWizard/output.json rename to test/lib/carelink/bolus/dual/noWizard/output.json diff --git a/test/node/carelink/bolus/dual/noWizardNoNormal/input.csv b/test/lib/carelink/bolus/dual/noWizardNoNormal/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/noWizardNoNormal/input.csv rename to test/lib/carelink/bolus/dual/noWizardNoNormal/input.csv diff --git a/test/node/carelink/bolus/dual/noWizardNoNormal/output.json b/test/lib/carelink/bolus/dual/noWizardNoNormal/output.json similarity index 100% rename from test/node/carelink/bolus/dual/noWizardNoNormal/output.json rename to test/lib/carelink/bolus/dual/noWizardNoNormal/output.json diff --git a/test/node/carelink/bolus/dual/withMultiWizardOutOfSequence/input.csv b/test/lib/carelink/bolus/dual/withMultiWizardOutOfSequence/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/withMultiWizardOutOfSequence/input.csv rename to test/lib/carelink/bolus/dual/withMultiWizardOutOfSequence/input.csv diff --git a/test/node/carelink/bolus/dual/withMultiWizardOutOfSequence/output.json b/test/lib/carelink/bolus/dual/withMultiWizardOutOfSequence/output.json similarity index 100% rename from test/node/carelink/bolus/dual/withMultiWizardOutOfSequence/output.json rename to test/lib/carelink/bolus/dual/withMultiWizardOutOfSequence/output.json diff --git a/test/node/carelink/bolus/dual/withWizard/input.csv b/test/lib/carelink/bolus/dual/withWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/withWizard/input.csv rename to test/lib/carelink/bolus/dual/withWizard/input.csv diff --git a/test/node/carelink/bolus/dual/withWizard/output.json b/test/lib/carelink/bolus/dual/withWizard/output.json similarity index 100% rename from test/node/carelink/bolus/dual/withWizard/output.json rename to test/lib/carelink/bolus/dual/withWizard/output.json diff --git a/test/node/carelink/bolus/dual/withWizardInterruptedWithOverride/input.csv b/test/lib/carelink/bolus/dual/withWizardInterruptedWithOverride/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/withWizardInterruptedWithOverride/input.csv rename to test/lib/carelink/bolus/dual/withWizardInterruptedWithOverride/input.csv diff --git a/test/node/carelink/bolus/dual/withWizardInterruptedWithOverride/output.json b/test/lib/carelink/bolus/dual/withWizardInterruptedWithOverride/output.json similarity index 100% rename from test/node/carelink/bolus/dual/withWizardInterruptedWithOverride/output.json rename to test/lib/carelink/bolus/dual/withWizardInterruptedWithOverride/output.json diff --git a/test/node/carelink/bolus/dual/withWizardNoNormal/input.csv b/test/lib/carelink/bolus/dual/withWizardNoNormal/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/withWizardNoNormal/input.csv rename to test/lib/carelink/bolus/dual/withWizardNoNormal/input.csv diff --git a/test/node/carelink/bolus/dual/withWizardNoNormal/output.json b/test/lib/carelink/bolus/dual/withWizardNoNormal/output.json similarity index 100% rename from test/node/carelink/bolus/dual/withWizardNoNormal/output.json rename to test/lib/carelink/bolus/dual/withWizardNoNormal/output.json diff --git a/test/node/carelink/bolus/dual/withWizardOutOfSequence/input.csv b/test/lib/carelink/bolus/dual/withWizardOutOfSequence/input.csv similarity index 100% rename from test/node/carelink/bolus/dual/withWizardOutOfSequence/input.csv rename to test/lib/carelink/bolus/dual/withWizardOutOfSequence/input.csv diff --git a/test/node/carelink/bolus/dual/withWizardOutOfSequence/output.json b/test/lib/carelink/bolus/dual/withWizardOutOfSequence/output.json similarity index 100% rename from test/node/carelink/bolus/dual/withWizardOutOfSequence/output.json rename to test/lib/carelink/bolus/dual/withWizardOutOfSequence/output.json diff --git a/test/node/carelink/bolus/normal/noWizard/input.csv b/test/lib/carelink/bolus/normal/noWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/normal/noWizard/input.csv rename to test/lib/carelink/bolus/normal/noWizard/input.csv diff --git a/test/node/carelink/bolus/normal/noWizard/output.json b/test/lib/carelink/bolus/normal/noWizard/output.json similarity index 100% rename from test/node/carelink/bolus/normal/noWizard/output.json rename to test/lib/carelink/bolus/normal/noWizard/output.json diff --git a/test/node/carelink/bolus/normal/noWizardInterrupted/input.csv b/test/lib/carelink/bolus/normal/noWizardInterrupted/input.csv similarity index 100% rename from test/node/carelink/bolus/normal/noWizardInterrupted/input.csv rename to test/lib/carelink/bolus/normal/noWizardInterrupted/input.csv diff --git a/test/node/carelink/bolus/normal/noWizardInterrupted/output.json b/test/lib/carelink/bolus/normal/noWizardInterrupted/output.json similarity index 100% rename from test/node/carelink/bolus/normal/noWizardInterrupted/output.json rename to test/lib/carelink/bolus/normal/noWizardInterrupted/output.json diff --git a/test/node/carelink/bolus/normal/withOverride/input.csv b/test/lib/carelink/bolus/normal/withOverride/input.csv similarity index 100% rename from test/node/carelink/bolus/normal/withOverride/input.csv rename to test/lib/carelink/bolus/normal/withOverride/input.csv diff --git a/test/node/carelink/bolus/normal/withOverride/output.json b/test/lib/carelink/bolus/normal/withOverride/output.json similarity index 100% rename from test/node/carelink/bolus/normal/withOverride/output.json rename to test/lib/carelink/bolus/normal/withOverride/output.json diff --git a/test/node/carelink/bolus/normal/withWizard/input.csv b/test/lib/carelink/bolus/normal/withWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/normal/withWizard/input.csv rename to test/lib/carelink/bolus/normal/withWizard/input.csv diff --git a/test/node/carelink/bolus/normal/withWizard/output.json b/test/lib/carelink/bolus/normal/withWizard/output.json similarity index 100% rename from test/node/carelink/bolus/normal/withWizard/output.json rename to test/lib/carelink/bolus/normal/withWizard/output.json diff --git a/test/node/carelink/bolus/normal/withWizardInterveningBG/input.csv b/test/lib/carelink/bolus/normal/withWizardInterveningBG/input.csv similarity index 100% rename from test/node/carelink/bolus/normal/withWizardInterveningBG/input.csv rename to test/lib/carelink/bolus/normal/withWizardInterveningBG/input.csv diff --git a/test/node/carelink/bolus/normal/withWizardInterveningBG/output.json b/test/lib/carelink/bolus/normal/withWizardInterveningBG/output.json similarity index 100% rename from test/node/carelink/bolus/normal/withWizardInterveningBG/output.json rename to test/lib/carelink/bolus/normal/withWizardInterveningBG/output.json diff --git a/test/node/carelink/bolus/square/noWizard/input.csv b/test/lib/carelink/bolus/square/noWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/square/noWizard/input.csv rename to test/lib/carelink/bolus/square/noWizard/input.csv diff --git a/test/node/carelink/bolus/square/noWizard/output.json b/test/lib/carelink/bolus/square/noWizard/output.json similarity index 100% rename from test/node/carelink/bolus/square/noWizard/output.json rename to test/lib/carelink/bolus/square/noWizard/output.json diff --git a/test/node/carelink/bolus/square/noWizardInterrupted/input.csv b/test/lib/carelink/bolus/square/noWizardInterrupted/input.csv similarity index 100% rename from test/node/carelink/bolus/square/noWizardInterrupted/input.csv rename to test/lib/carelink/bolus/square/noWizardInterrupted/input.csv diff --git a/test/node/carelink/bolus/square/noWizardInterrupted/output.json b/test/lib/carelink/bolus/square/noWizardInterrupted/output.json similarity index 100% rename from test/node/carelink/bolus/square/noWizardInterrupted/output.json rename to test/lib/carelink/bolus/square/noWizardInterrupted/output.json diff --git a/test/node/carelink/bolus/square/withWizard/input.csv b/test/lib/carelink/bolus/square/withWizard/input.csv similarity index 100% rename from test/node/carelink/bolus/square/withWizard/input.csv rename to test/lib/carelink/bolus/square/withWizard/input.csv diff --git a/test/node/carelink/bolus/square/withWizard/output.json b/test/lib/carelink/bolus/square/withWizard/output.json similarity index 100% rename from test/node/carelink/bolus/square/withWizard/output.json rename to test/lib/carelink/bolus/square/withWizard/output.json diff --git a/test/node/carelink/cbg/input.csv b/test/lib/carelink/cbg/input.csv similarity index 100% rename from test/node/carelink/cbg/input.csv rename to test/lib/carelink/cbg/input.csv diff --git a/test/node/carelink/cbg/output.json b/test/lib/carelink/cbg/output.json similarity index 100% rename from test/node/carelink/cbg/output.json rename to test/lib/carelink/cbg/output.json diff --git a/test/node/carelink/mockSimulator.js b/test/lib/carelink/mockSimulator.js similarity index 100% rename from test/node/carelink/mockSimulator.js rename to test/lib/carelink/mockSimulator.js diff --git a/test/node/carelink/overlaps/no-overlap.csv b/test/lib/carelink/overlaps/no-overlap.csv similarity index 100% rename from test/node/carelink/overlaps/no-overlap.csv rename to test/lib/carelink/overlaps/no-overlap.csv diff --git a/test/node/carelink/overlaps/overlap.csv b/test/lib/carelink/overlaps/overlap.csv similarity index 100% rename from test/node/carelink/overlaps/overlap.csv rename to test/lib/carelink/overlaps/overlap.csv diff --git a/test/node/carelink/overlaps/unsupported.csv b/test/lib/carelink/overlaps/unsupported.csv similarity index 100% rename from test/node/carelink/overlaps/unsupported.csv rename to test/lib/carelink/overlaps/unsupported.csv diff --git a/test/node/carelink/settings/noChanges/input.csv b/test/lib/carelink/settings/noChanges/input.csv similarity index 100% rename from test/node/carelink/settings/noChanges/input.csv rename to test/lib/carelink/settings/noChanges/input.csv diff --git a/test/node/carelink/settings/noChanges/output.json b/test/lib/carelink/settings/noChanges/output.json similarity index 100% rename from test/node/carelink/settings/noChanges/output.json rename to test/lib/carelink/settings/noChanges/output.json diff --git a/test/node/carelink/settings/withChanges/input.csv b/test/lib/carelink/settings/withChanges/input.csv similarity index 100% rename from test/node/carelink/settings/withChanges/input.csv rename to test/lib/carelink/settings/withChanges/input.csv diff --git a/test/node/carelink/settings/withChanges/output.json b/test/lib/carelink/settings/withChanges/output.json similarity index 100% rename from test/node/carelink/settings/withChanges/output.json rename to test/lib/carelink/settings/withChanges/output.json diff --git a/test/node/carelink/settings/withSameTimeChanges/input.csv b/test/lib/carelink/settings/withSameTimeChanges/input.csv similarity index 100% rename from test/node/carelink/settings/withSameTimeChanges/input.csv rename to test/lib/carelink/settings/withSameTimeChanges/input.csv diff --git a/test/node/carelink/settings/withSameTimeChanges/output.json b/test/lib/carelink/settings/withSameTimeChanges/output.json similarity index 100% rename from test/node/carelink/settings/withSameTimeChanges/output.json rename to test/lib/carelink/settings/withSameTimeChanges/output.json diff --git a/test/node/carelink/smbg/input.csv b/test/lib/carelink/smbg/input.csv similarity index 100% rename from test/node/carelink/smbg/input.csv rename to test/lib/carelink/smbg/input.csv diff --git a/test/node/carelink/smbg/output.json b/test/lib/carelink/smbg/output.json similarity index 100% rename from test/node/carelink/smbg/output.json rename to test/lib/carelink/smbg/output.json diff --git a/test/node/carelink/suspend/input.csv b/test/lib/carelink/suspend/input.csv similarity index 100% rename from test/node/carelink/suspend/input.csv rename to test/lib/carelink/suspend/input.csv diff --git a/test/node/carelink/suspend/output.json b/test/lib/carelink/suspend/output.json similarity index 100% rename from test/node/carelink/suspend/output.json rename to test/lib/carelink/suspend/output.json diff --git a/test/node/carelink/testCarelinkSimulator.js b/test/lib/carelink/testCarelinkSimulator.js similarity index 100% rename from test/node/carelink/testCarelinkSimulator.js rename to test/lib/carelink/testCarelinkSimulator.js diff --git a/test/node/carelink/testCommon.js b/test/lib/carelink/testCommon.js similarity index 100% rename from test/node/carelink/testCommon.js rename to test/lib/carelink/testCommon.js diff --git a/test/node/carelink/testDriver.js b/test/lib/carelink/testDriver.js similarity index 100% rename from test/node/carelink/testDriver.js rename to test/lib/carelink/testDriver.js diff --git a/test/node/carelink/testRemoveOverlaps.js b/test/lib/carelink/testRemoveOverlaps.js similarity index 100% rename from test/node/carelink/testRemoveOverlaps.js rename to test/lib/carelink/testRemoveOverlaps.js diff --git a/test/node/carelink/testSerial.js b/test/lib/carelink/testSerial.js similarity index 100% rename from test/node/carelink/testSerial.js rename to test/lib/carelink/testSerial.js diff --git a/test/browser/core/personUtils.test.js b/test/lib/core/personUtils.test.js similarity index 100% rename from test/browser/core/personUtils.test.js rename to test/lib/core/personUtils.test.js diff --git a/test/browser/polyfill/function.prototype.bind.js b/test/lib/core/polyfill/function.prototype.bind.js similarity index 100% rename from test/browser/polyfill/function.prototype.bind.js rename to test/lib/core/polyfill/function.prototype.bind.js diff --git a/test/node/dexcom/testUserSettingsChanges.js b/test/lib/dexcom/testUserSettingsChanges.js similarity index 100% rename from test/node/dexcom/testUserSettingsChanges.js rename to test/lib/dexcom/testUserSettingsChanges.js diff --git a/test/browser/fixtures/nonpwd.json b/test/lib/fixtures/nonpwd.json similarity index 100% rename from test/browser/fixtures/nonpwd.json rename to test/lib/fixtures/nonpwd.json diff --git a/test/browser/fixtures/pwd.json b/test/lib/fixtures/pwd.json similarity index 100% rename from test/browser/fixtures/pwd.json rename to test/lib/fixtures/pwd.json diff --git a/test/node/insulet/testInsuletSimulator.js b/test/lib/insulet/testInsuletSimulator.js similarity index 100% rename from test/node/insulet/testInsuletSimulator.js rename to test/lib/insulet/testInsuletSimulator.js diff --git a/test/node/insulet/testLogic.js b/test/lib/insulet/testLogic.js similarity index 100% rename from test/node/insulet/testLogic.js rename to test/lib/insulet/testLogic.js diff --git a/test/node/tandem/testTandemSimulator.js b/test/lib/tandem/testTandemSimulator.js similarity index 100% rename from test/node/tandem/testTandemSimulator.js rename to test/lib/tandem/testTandemSimulator.js diff --git a/test/node/testCommonSimulations.js b/test/lib/testCommonSimulations.js similarity index 100% rename from test/node/testCommonSimulations.js rename to test/lib/testCommonSimulations.js diff --git a/test/node/testDriverManager.js b/test/lib/testDriverManager.js similarity index 100% rename from test/node/testDriverManager.js rename to test/lib/testDriverManager.js diff --git a/test/node/testHidDevice.js b/test/lib/testHidDevice.js similarity index 100% rename from test/node/testHidDevice.js rename to test/lib/testHidDevice.js diff --git a/test/node/testLocalStore.js b/test/lib/testLocalStore.js similarity index 100% rename from test/node/testLocalStore.js rename to test/lib/testLocalStore.js diff --git a/test/node/testObjectBuilder.js b/test/lib/testObjectBuilder.js similarity index 100% rename from test/node/testObjectBuilder.js rename to test/lib/testObjectBuilder.js diff --git a/test/node/testSerialDevice.js b/test/lib/testSerialDevice.js similarity index 100% rename from test/node/testSerialDevice.js rename to test/lib/testSerialDevice.js diff --git a/test/node/testStatusManager.js b/test/lib/testStatusManager.js similarity index 100% rename from test/node/testStatusManager.js rename to test/lib/testStatusManager.js diff --git a/test/node/testStruct.js b/test/lib/testStruct.js similarity index 100% rename from test/node/testStruct.js rename to test/lib/testStruct.js diff --git a/test/browser/testTimezoneOffsetUtil.js b/test/lib/testTimezoneOffsetUtil.js similarity index 100% rename from test/browser/testTimezoneOffsetUtil.js rename to test/lib/testTimezoneOffsetUtil.js diff --git a/test/reducers/.gitkeep b/test/reducers/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000