-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.ts
More file actions
25 lines (22 loc) · 704 Bytes
/
constants.ts
File metadata and controls
25 lines (22 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { TestState } from './types.js'
export const STATE_MAP: Record<string, TestState> = {
running: TestState.RUNNING,
failed: TestState.FAILED,
passed: TestState.PASSED,
skipped: TestState.SKIPPED
}
import type { RunCapabilities } from './types.js'
export const DEFAULT_CAPABILITIES: RunCapabilities = {
canRunSuites: true,
canRunTests: true,
canRunAll: true
}
export const FRAMEWORK_CAPABILITIES: Record<string, RunCapabilities> = {
cucumber: { canRunSuites: true, canRunTests: false, canRunAll: true },
'nightwatch-cucumber': {
canRunSuites: true,
canRunTests: false,
canRunAll: false
},
nightwatch: { canRunSuites: true, canRunTests: true, canRunAll: false }
}