Skip to content

Commit

Permalink
fixup! fixup! fixup! test: improve jest execution speeds by removing …
Browse files Browse the repository at this point in the history
…-i and --coverage from v8,v0
  • Loading branch information
Hotell committed Apr 25, 2023
1 parent 7239b37 commit ef34fd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/tasks/src/jest.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { JestTaskOptions, logger } from 'just-scripts';
import { logger } from 'just-scripts';
// eslint-disable-next-line import/no-extraneous-dependencies
import { spawn } from 'just-scripts-utils';

import { JustArgs, getJustArgv } from './argv';

const commonJestTask = (options: JestTaskOptions = {}) => {
const commonJestTask = (options: JestTaskConfig = {}) => {
const {
nodeArgs,
_ = [],
Expand All @@ -18,9 +18,9 @@ const commonJestTask = (options: JestTaskOptions = {}) => {
registry,
// these args without explicit handling will be passed directly through to jest
...otherArgs
} = getJustArgv() as JustArgs & JestTaskOptions;
} = getJustArgv() as JustArgs & JestTaskConfig;

return jestTask({ ...otherArgs });
return jestTask({ ...options, ...otherArgs });
};

export const jest = () => {
Expand All @@ -31,7 +31,7 @@ export const jestWatch = () => {
return commonJestTask({ watch: true });
};

export type JestTaskConfig = {
type JestTaskConfig = {
config?: string;
passWithNoTests?: boolean;
cache?: boolean;
Expand Down

0 comments on commit ef34fd2

Please sign in to comment.