Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: TestSequencerConstructor typo #1618

Merged
merged 1 commit into from Jul 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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