Skip to content

Commit

Permalink
fix!: TestSequencerConstructor typo (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Jul 9, 2022
1 parent 695a7a2 commit 6358c8f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/index.ts
Expand Up @@ -6,5 +6,5 @@ export { startVitest } from './cli-api'
export { VitestRunner } from '../runtime/execute'
export type { ExecuteOptions } from '../runtime/execute'

export type { TestSequencer, TestSequencerContructor } from './sequencers/types'
export type { TestSequencer, TestSequencerConstructor } from './sequencers/types'
export { BaseSequencer } from './sequencers/BaseSequencer'
2 changes: 1 addition & 1 deletion packages/vitest/src/node/sequencers/types.ts
Expand Up @@ -10,6 +10,6 @@ export interface TestSequencer {
sort(files: string[]): Awaitable<string[]>
}

export interface TestSequencerContructor {
export interface TestSequencerConstructor {
new (ctx: Vitest): TestSequencer
}
6 changes: 3 additions & 3 deletions packages/vitest/src/types/config.ts
Expand Up @@ -2,7 +2,7 @@ import type { CommonServerOptions } from 'vite'
import type { PrettyFormatOptions } from 'pretty-format'
import type { FakeTimerInstallOpts } from '@sinonjs/fake-timers'
import type { BuiltinReporters } from '../node/reporters'
import type { TestSequencerContructor } from '../node/sequencers/types'
import type { TestSequencerConstructor } from '../node/sequencers/types'
import type { C8Options, ResolvedC8Options } from './coverage'
import type { JSDOMOptions } from './jsdom-options'
import type { Reporter } from './reporter'
Expand Down Expand Up @@ -381,7 +381,7 @@ export interface InlineConfig {
* your custom sequencer from `BaseSequencer` from `vitest/node`.
* @default BaseSequencer
*/
sequencer?: TestSequencerContructor
sequencer?: TestSequencerConstructor
/**
* Should tests run in random order.
* @default false
Expand Down Expand Up @@ -465,7 +465,7 @@ export interface ResolvedConfig extends Omit<Required<UserConfig>, 'config' | 'f
} | false

sequence: {
sequencer: TestSequencerContructor
sequencer: TestSequencerConstructor
shuffle?: boolean
seed?: number
}
Expand Down

0 comments on commit 6358c8f

Please sign in to comment.