Skip to content

Commit

Permalink
Move stuff around for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Jun 7, 2023
1 parent 9696752 commit 767776b
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/smoke-test-node-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
node-version: 16
- run: yarn
- name: run chromatic via node
run: yarn ts-node ./scripts/test.ts
run: yarn ts-node ./scripts/run-via-node.ts
env:
LOG_LEVEL: debug
DEBUG: chromatic-cli
Expand Down
2 changes: 1 addition & 1 deletion bin-src/trim-stats-file.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import mockfs from 'mock-fs';

import { readStatsFile } from '../node-src/tasks/read-stats-file';
// eslint-disable-next-line jest/no-mocks-import
import * as trimmedFile from '../node-src/__mocks__/previewStatsJson/preview-stats.trimmed.json';
import * as trimmedFile from './__mocks__/previewStatsJson/preview-stats.trimmed.json';

mockfs({
'./storybook-static/preview-stats.json': JSON.stringify(trimmedFile),
Expand Down
2 changes: 1 addition & 1 deletion node-src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface Output {

export async function run({
argv = [],
flags,
flags = {},
}: {
argv?: string[];
flags?: Flags;
Expand Down
File renamed without changes.

0 comments on commit 767776b

Please sign in to comment.