You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 1, 2020. It is now read-only.
thrownewError(`Cypress Webpack Preprocessor must be called with the Cypress config as its first argument. You passed: ${JSON.stringify(config,null,2)}`)
41
-
}
42
-
43
-
log('user options:',userOptions)
44
-
38
+
constpreprocessor=(options={})=>{
39
+
log('user options:',options)
45
40
46
41
// we return function that accepts the arguments provided by
47
42
// the event 'file:preprocessor'
48
43
//
49
44
// this function will get called for the support file when a project is loaded
50
45
// (if the support file is not disabled)
51
-
// it will also get calledfor a spec file when that spec is requested by
46
+
// it will also get called for a spec file when that spec is requested by
52
47
// the Cypress runner
53
48
//
54
49
// when running in the GUI, it will likely get called multiple times
55
50
// with the same filePath, as the user could re-run the tests, causing
56
51
// the supported file and spec file to be requested again
57
-
return(filePath,util)=>{
52
+
return(config)=>{
53
+
constfilePath=config.filePath
58
54
log('get',filePath)
59
55
60
56
// since this function can get called multiple times with the same
0 commit comments