creevey 0.9.0-beta.15 → 0.9.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.yarn/install-state.gz +0 -0
- package/lib/cjs/client/web/main.js +2 -2
- package/lib/cjs/creevey.js +1 -1
- package/lib/cjs/server/config.js +1 -0
- package/lib/esm/client/web/main.js +2 -2
- package/lib/esm/creevey.js +1 -1
- package/lib/esm/server/config.js +1 -0
- package/lib/types/client/web/KeyboardEventsContext.d.ts +3 -1
- package/lib/types/types.d.ts +1 -0
- package/package.json +1 -1
package/lib/esm/creevey.js
CHANGED
@@ -24,7 +24,7 @@ process.on('unhandledRejection', shutdownOnException);
|
|
24
24
|
if (cluster.isWorker) process.on('SIGINT', noop);
|
25
25
|
if (cluster.isPrimary) process.on('SIGINT', shutdown);
|
26
26
|
const argv = minimist(process.argv.slice(2), {
|
27
|
-
string: ['browser', 'config', 'reporter', 'reportDir', 'screenDir'],
|
27
|
+
string: ['browser', 'config', 'reporter', 'reportDir', 'screenDir', 'storybookUrl'],
|
28
28
|
boolean: ['debug', 'ui', 'saveReport', 'tests'],
|
29
29
|
default: {
|
30
30
|
port: 3000,
|
package/lib/esm/server/config.js
CHANGED
@@ -56,6 +56,7 @@ export async function readConfig(options) {
|
|
56
56
|
if (options.failFast != undefined) userConfig.failFast = Boolean(options.failFast);
|
57
57
|
if (options.reportDir) userConfig.reportDir = path.resolve(options.reportDir);
|
58
58
|
if (options.screenDir) userConfig.screenDir = path.resolve(options.screenDir);
|
59
|
+
if (options.storybookUrl) userConfig.storybookUrl = options.storybookUrl;
|
59
60
|
|
60
61
|
// NOTE: Hack to pass typescript checking
|
61
62
|
const config = userConfig;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { CreeveySuite } from '../../types';
|
3
3
|
import { CreeveyViewFilter } from '../shared/helpers';
|
4
|
+
export declare type SuitePath = string[];
|
5
|
+
export declare type FocusableItem = 'search' | SuitePath;
|
4
6
|
export interface KeyboardEventsContextType {
|
5
|
-
sidebarFocusedItem:
|
7
|
+
sidebarFocusedItem: FocusableItem;
|
6
8
|
setSidebarFocusedItem: (path: string[]) => void;
|
7
9
|
}
|
8
10
|
export declare const KeyboardEventsContext: React.Context<KeyboardEventsContextType>;
|
package/lib/types/types.d.ts
CHANGED