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
Background
Now we have GENERATE_DATA flag that allow saveToFile function to update file examples if it is true.
At the same time for screenshot update we use --update-snapshots run parameter.
Both of these processes (example file update and screenshot update) has the same nature - the update previously saved example file/screenshots
So it is obvious to unite them and make one universal update procedure
Solution Screenshot update procedure set process.env.UPDATE_SNAPSHOTS environment variable to '1' if launched
so it obvious to use it for file update procedure as well
Update saveToFile function and remove GENERATE_DATA flag from configs
The text was updated successfully, but these errors were encountered:
AlexeyGirin
changed the title
Autotests: Get rid of GENERATE_DATA flag in updating template files process
Autotests: Get rid of GENERATE_DATA flag in updating example files process
Jan 22, 2025
AlexeyGirin
changed the title
Autotests: Get rid of GENERATE_DATA flag in updating example files process
Autotests: Get rid of GENERATE_DATA flag in updating example files process
Jan 22, 2025
Background
Now we have GENERATE_DATA flag that allow
saveToFile
function to update file examples if it is true.At the same time for screenshot update we use
--update-snapshots
run parameter.Both of these processes (
example file update
andscreenshot update
) has the same nature - the update previously saved example file/screenshotsSo it is obvious to unite them and make one universal update procedure
Solution
Screenshot update
procedure set process.env.UPDATE_SNAPSHOTS environment variable to '1' if launchedso it obvious to use it for
file update
procedure as wellUpdate
saveToFile
function and remove GENERATE_DATA flag from configsThe text was updated successfully, but these errors were encountered: