File tree 3 files changed +14
-2
lines changed
3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "singleQuote": false
3
+ }
Original file line number Diff line number Diff line change 2
2
import "source-map-support/register.js" ;
3
3
4
4
import { run as internalRun } from "./lib/run" ;
5
+ export type { CurrentsConfig } from "./lib/config/config" ;
5
6
import { CurrentsRunAPI } from "./types" ;
6
7
export type { CurrentsRunAPI } from "./types" ;
7
8
/**
Original file line number Diff line number Diff line change @@ -18,6 +18,14 @@ export type ComponentConfig = {
18
18
type RetryConfig = {
19
19
hardFailureMaxRetries : number ;
20
20
} ;
21
+
22
+ /**
23
+ * This is the type for `currents.config.*s`. If you are not officially using TypeScript,
24
+ * you can still type the exported config in your IDE by adding the following as a block comment
25
+ * above `module.exports` / `export default`:
26
+ *
27
+ * `@type {import('cypress-cloud').CurrentsConfig}`
28
+ */
21
29
export type CurrentsConfig = {
22
30
projectId ?: string ;
23
31
recordKey ?: string ;
@@ -43,7 +51,7 @@ const defaultConfig: CurrentsConfig = {
43
51
44
52
export async function getCurrentsConfig (
45
53
projectRoot ?: string ,
46
- explicitConfigFilePath ?: string
54
+ explicitConfigFilePath ?: string ,
47
55
) : Promise < CurrentsConfig > {
48
56
if ( _config ) {
49
57
return _config ;
@@ -70,7 +78,7 @@ export async function getCurrentsConfig(
70
78
71
79
warn (
72
80
"Failed to load config file, falling back to the default config. Attempted locations: %s" ,
73
- configFilePath
81
+ configFilePath ,
74
82
) ;
75
83
_config = defaultConfig ;
76
84
return _config ;
You can’t perform that action at this time.
0 commit comments