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.
@@ -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,
@@ -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: string[];
7
+ sidebarFocusedItem: FocusableItem;
6
8
  setSidebarFocusedItem: (path: string[]) => void;
7
9
  }
8
10
  export declare const KeyboardEventsContext: React.Context<KeyboardEventsContextType>;
@@ -241,6 +241,7 @@ export interface Options {
241
241
  reporter?: string;
242
242
  screenDir?: string;
243
243
  reportDir?: string;
244
+ storybookUrl?: string;
244
245
  saveReport: boolean;
245
246
  failFast?: boolean;
246
247
  }
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "addon",
14
14
  "test"
15
15
  ],
16
- "version": "0.9.0-beta.15",
16
+ "version": "0.9.0-beta.16",
17
17
  "bin": "./lib/cjs/cli.js",
18
18
  "exports": {
19
19
  ".": {