Skip to content

Commit

Permalink
Rename deck.gl test utils (visgl#1491)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen authored Mar 1, 2018
1 parent bdcbade commit 924d17b
Show file tree
Hide file tree
Showing 22 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions docs/api-reference/test-utils/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @deck.gl/test-utils (Experimental)
# deck.gl-test-utils (Experimental)

A set of utilities to facilitate testing deck.gl layers in applications.

Expand Down Expand Up @@ -29,14 +29,14 @@ deck.gl's lifecycle test support includes test drivers to initialize, update and
## Usage

```js
import {experimental} from '@deck.gl/test-utils';
import {experimental} from 'deck.gl-test-utils';
const {...} = experimental;
...
```

The lifecycle test drivers can also simplify testing of successive updates of a layer
```js
import {experimental} from '@deck.gl/test-utils';
import {experimental} from 'deck.gl-test-utils';
const {...} = experimental;
...
```
Expand Down
2 changes: 1 addition & 1 deletion examples/test-utils/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = {
resolve: {
alias: {
'deck.gl': resolve('./src'),
'@deck.gl/test-utils': resolve('./src/test-utils/src'),
'deck.gl-test-utils': resolve('./src/test-utils/src'),
'deck.gl-layers': resolve('./src/experimental-layers/src')
}
},
Expand Down
2 changes: 1 addition & 1 deletion test/bench/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ require('babel-polyfill');
const {experimental} = require('probe.gl');
experimental.enableDOMLogging();

require('@deck.gl/test-utils');
require('deck.gl-test-utils');
require('./index');
2 changes: 1 addition & 1 deletion test/bench/core-layers.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import * as data from 'deck.gl/test/data';

import {ScatterplotLayer, PolygonLayer, PathLayer, GeoJsonLayer} from 'deck.gl';

import {testInitializeLayer} from '@deck.gl/test-utils';
import {testInitializeLayer} from 'deck.gl-test-utils';

import SolidPolygonLayer from 'deck.gl/core-layers/solid-polygon-layer/solid-polygon-layer';
import {SolidPolygonLayer as SolidPolygonLayer2} from 'deck.gl/experimental-layers/src';
Expand Down
2 changes: 1 addition & 1 deletion test/bench/layer.bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import * as data from 'deck.gl/test/data';

import {ScatterplotLayer} from 'deck.gl';

// import {testInitializeLayer} from '@deck.gl/test-utils';
// import {testInitializeLayer} from 'deck.gl-test-utils';

let testIdx = 0;
const testLayer = new ScatterplotLayer({data: data.points});
Expand Down
2 changes: 1 addition & 1 deletion test/bench/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const path = require('path');
const moduleAlias = require('module-alias');
moduleAlias.addAlias('deck.gl/test', path.resolve('./test'));
moduleAlias.addAlias('deck.gl', path.resolve('./src'));
moduleAlias.addAlias('@deck.gl/test-utils', path.resolve('./src/test-utils/src'));
moduleAlias.addAlias('deck.gl-test-utils', path.resolve('./src/test-utils/src'));

require('babel-polyfill');

Expand Down
2 changes: 1 addition & 1 deletion test/node-aliases.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ moduleAlias.addAlias('deck.gl/test', path.resolve('./test'));
moduleAlias.addAlias('deck.gl', path.resolve('./src'));
moduleAlias.addAlias('deck.gl/dist', path.resolve('./src'));
moduleAlias.addAlias('deck.gl-layers', path.resolve('./src/experimental-layers/src'));
moduleAlias.addAlias('@deck.gl/test-utils', path.resolve('./src/test-utils/src'));
moduleAlias.addAlias('deck.gl-test-utils', path.resolve('./src/test-utils/src'));

require('babel-polyfill');
2 changes: 1 addition & 1 deletion test/render-from-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
require('./node-aliases');

// Run the tests
const {RenderTestDriver} = require('@deck.gl/test-utils');
const {RenderTestDriver} = require('deck.gl-test-utils');

new RenderTestDriver().run({
parameters: ['--env.render-react', '--progress']
Expand Down
2 changes: 1 addition & 1 deletion test/render/old/test-rendering.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import DeckGL from 'deck.gl';

import * as CONFIG from '../test-cases';

import {diffImagePixels} from '@deck.gl/test-utils';
import {diffImagePixels} from 'deck.gl-test-utils';

// DeckGL container
const deckGLContainer = document.createElement('div');
Expand Down
2 changes: 1 addition & 1 deletion test/render/test-rendering.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import {TEST_CASES} from './test-cases';
import {RenderTest} from '@deck.gl/test-utils';
import {RenderTest} from 'deck.gl-test-utils';

const testRendering = new RenderTest({
testCases: TEST_CASES,
Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/core-layers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import {
testCreateEmptyLayer,
testNullLayer,
testLayerUpdates
} from '@deck.gl/test-utils';
} from 'deck.gl-test-utils';

import * as FIXTURES from 'deck.gl/test/data';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/geojson-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
testCreateEmptyLayer,
testNullLayer,
testLayerUpdates
} from '@deck.gl/test-utils';
} from 'deck.gl-test-utils';

import {GeoJsonLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/grid-cell-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import test from 'tape-catch';
import {testInitializeLayer, testLayerUpdates} from '@deck.gl/test-utils';
import {testInitializeLayer, testLayerUpdates} from 'deck.gl-test-utils';

import {GridCellLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/grid-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
testLayerUpdates,
testNullLayer,
testSubLayerUpdateTriggers
} from '@deck.gl/test-utils';
} from 'deck.gl-test-utils';

import {GridLayer, GridCellLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/hexagon-cell-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// THE SOFTWARE.

import test from 'tape-catch';
import {testInitializeLayer, testLayerUpdates, toLowPrecision} from '@deck.gl/test-utils';
import {testInitializeLayer, testLayerUpdates, toLowPrecision} from 'deck.gl-test-utils';

import {HexagonCellLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/hexagon-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
testInitializeLayer,
testLayerUpdates,
testSubLayerUpdateTriggers
} from '@deck.gl/test-utils';
} from 'deck.gl-test-utils';

import {HexagonLayer, HexagonCellLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core-layers/polygon-layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
testCreateEmptyLayer,
testNullLayer,
testLayerUpdates
} from '@deck.gl/test-utils';
} from 'deck.gl-test-utils';

import {PolygonLayer} from 'deck.gl';

Expand Down
2 changes: 1 addition & 1 deletion test/src/core/lib/layer-manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/* eslint-disable func-style, no-console, max-len */
import test from 'tape-catch';
import {LayerManager, Viewport, Layer, CompositeLayer} from 'deck.gl';
import {gl} from '@deck.gl/test-utils';
import {gl} from 'deck.gl-test-utils';

class TestLayer extends Layer {
initializeState() {}
Expand Down
2 changes: 1 addition & 1 deletion test/src/core/lib/layer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import test from 'tape-catch';
import {Layer, AttributeManager} from 'deck.gl';
import {testInitializeLayer} from '@deck.gl/test-utils';
import {testInitializeLayer} from 'deck.gl-test-utils';
import {makeSpy} from 'probe.gl/test';

const dataVariants = [{data: ['a', 'b', 'c'], size: 3}];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import test from 'tape-catch';
import ViewportFlyToInterpolator from 'deck.gl/core/transitions/viewport-fly-to-interpolator';
import {toLowPrecision} from '@deck.gl/test-utils';
import {toLowPrecision} from 'deck.gl-test-utils';

/* eslint-disable max-len */
const TEST_CASES = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {WebMercatorViewport} from 'deck.gl';
import test from 'tape-catch';
import {toLowPrecision} from '@deck.gl/test-utils';
import {toLowPrecision} from 'deck.gl-test-utils';

const viewportProps = {
latitude: 37.75,
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const BROWSER_CONFIG = {
'deck.gl/dist': resolve('./src'),
'deck.gl': resolve('./src'),
'deck.gl-layers': resolve('./src/experimental-layers/src'),
'@deck.gl/test-utils': resolve('./src/test-utils/src'),
'deck.gl-test-utils': resolve('./src/test-utils/src'),
// Aliases needed to defeat root scripts from getting duplicate dependencies
// from sub module node_modules
'luma.gl': resolve('./node_modules/luma.gl'),
Expand Down

0 comments on commit 924d17b

Please sign in to comment.