mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-26 19:09:32 -06:00
Wrap konfig load from scripts tests to avoid changing CWD (#4067)
* chore: add utility method to get konfig from scripts tests Local scripts specs should be be caught by the changing current directory when loading `konfig.coffee` (which loads `cwd.coffee`, which changes the cwd to `packages/server`). This was throwing snapshot tests into saving into a wrong folder until I have noticed this and fixed in [v8.0.3](https://github.com/bahmutov/snap-shot-core/releases/tag/v8.0.3) * linting * add more comments
This commit is contained in:
@@ -11,7 +11,7 @@ gulp = require("gulp")
|
||||
human = require("human-interval")
|
||||
R = require("ramda")
|
||||
|
||||
konfig = require("../../packages/server/lib/konfig")
|
||||
konfig = require('../binary/get-config')()
|
||||
uploadUtils = require("./util/upload")
|
||||
|
||||
# we zip the binary on every platform and upload under same name
|
||||
|
||||
Reference in New Issue
Block a user