mirror of
https://github.com/mermaid-js/mermaid.git
synced 2026-05-23 20:10:38 +00:00
Pass subset explicitly when registering Argos task
This commit is contained in:
@@ -31,6 +31,11 @@ export default eyesPlugin(
|
|||||||
registerArgosTask(on, config, {
|
registerArgosTask(on, config, {
|
||||||
// Enable upload to Argos only when it runs on CI.
|
// Enable upload to Argos only when it runs on CI.
|
||||||
uploadToArgos: !!process.env.CI,
|
uploadToArgos: !!process.env.CI,
|
||||||
|
// Mark as a subset build when only a scoped set of specs ran.
|
||||||
|
// This tells Argos to ignore missing screenshots (they were not
|
||||||
|
// run, not deleted) and prevents the baseline from being replaced
|
||||||
|
// by a partial run. Mirrors the ARGOS_SUBSET env var set in e2e.yml.
|
||||||
|
subset: process.env.ARGOS_SUBSET === 'true',
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addMatchImageSnapshotPlugin(on, config);
|
addMatchImageSnapshotPlugin(on, config);
|
||||||
|
|||||||
Reference in New Issue
Block a user