-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from javierbrea/release
Release v3.1.0
- Loading branch information
Showing
18 changed files
with
4,131 additions
and
1,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
test-e2e/cypress-src/plugins-custom/parallel-preprocessor-babel-config/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const fsExtra = require("fs-extra"); | ||
const path = require("path"); | ||
const webpackPreprocessor = require("@cypress/webpack-preprocessor"); | ||
const defaults = webpackPreprocessor.defaultOptions; | ||
|
||
const storageFile = path.resolve( | ||
__dirname, | ||
"..", | ||
"..", | ||
"..", | ||
"..", | ||
"parallel-storage", | ||
"parallel-storage.json" | ||
); | ||
|
||
module.exports = (on, config) => { | ||
require("../../../../../plugin")(on, config, { | ||
parallelCallbacks: { | ||
onCancel: () => { | ||
fsExtra.writeJsonSync(storageFile, { cancelled: true }); | ||
}, | ||
isCancelled: () => { | ||
if (fsExtra.pathExistsSync(storageFile)) { | ||
return fsExtra.readJsonSync(storageFile).cancelled; | ||
} | ||
return false; | ||
}, | ||
}, | ||
}); | ||
|
||
// Add log task | ||
on("task", { | ||
log: function (message) { | ||
console.log(message); | ||
return null; | ||
}, | ||
}); | ||
|
||
delete defaults.webpackOptions.module.rules[0].use[0].options.presets; | ||
on("file:preprocessor", webpackPreprocessor(defaults)); | ||
|
||
return config; | ||
}; |
39 changes: 39 additions & 0 deletions
39
test-e2e/cypress-src/plugins-custom/parallel-preprocessor-babel-config/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import fsExtra = require("fs-extra"); | ||
import path = require("path"); | ||
|
||
const storageFile = path.resolve( | ||
__dirname, | ||
"..", | ||
"..", | ||
"..", | ||
"..", | ||
"parallel-storage", | ||
"parallel-storage.json" | ||
); | ||
|
||
import cypressFailFast = require("../support/cypress-fail-fast/plugin"); | ||
|
||
export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.ResolvedConfigOptions => { | ||
cypressFailFast(on, config, { | ||
parallelCallbacks: { | ||
onCancel: () => { | ||
fsExtra.writeJsonSync(storageFile, { cancelled: true }); | ||
}, | ||
isCancelled: () => { | ||
if (fsExtra.pathExistsSync(storageFile)) { | ||
return fsExtra.readJsonSync(storageFile).cancelled; | ||
} | ||
return false; | ||
}, | ||
}, | ||
}); | ||
|
||
on("task", { | ||
log: function (message) { | ||
console.log(message); | ||
return null; | ||
}, | ||
}); | ||
|
||
return config; | ||
}; |
19 changes: 19 additions & 0 deletions
19
test-e2e/cypress-src/plugins-custom/preprocessor-babel-config/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const webpackPreprocessor = require("@cypress/webpack-preprocessor"); | ||
const defaults = webpackPreprocessor.defaultOptions; | ||
|
||
module.exports = (on, config) => { | ||
require("../../../../../plugin")(on, config); | ||
|
||
// Add log task | ||
on("task", { | ||
log: function (message) { | ||
console.log(message); | ||
return null; | ||
}, | ||
}); | ||
|
||
delete defaults.webpackOptions.module.rules[0].use[0].options.presets; | ||
on("file:preprocessor", webpackPreprocessor(defaults)); | ||
|
||
return config; | ||
}; |
14 changes: 14 additions & 0 deletions
14
test-e2e/cypress-src/plugins-custom/preprocessor-babel-config/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import cypressFailFast = require("../support/cypress-fail-fast/plugin"); | ||
|
||
export default (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions): Cypress.ResolvedConfigOptions => { | ||
cypressFailFast(on, config); | ||
|
||
on("task", { | ||
log: function (message) { | ||
console.log(message); | ||
return null; | ||
}, | ||
}); | ||
|
||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# exclude everything | ||
/* | ||
|
||
# exception to the rule | ||
!/.gitignore | ||
!/package.json | ||
!/package-lock.json |
Oops, something went wrong.