From 774b2a49cf46c01f4c8fe62b50e4c939f8436fbd Mon Sep 17 00:00:00 2001 From: Erik Moura Date: Mon, 14 Nov 2022 18:39:53 -0300 Subject: [PATCH] fixed test --- package.json | 3 ++- packages/api/core/package.json | 3 ++- packages/api/core/test/fast/forge-config_spec.ts | 1 - yarn.lock | 10 +++++++++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bedf5ecb69..01d4b8f4a9 100644 --- a/package.json +++ b/package.json @@ -137,7 +137,8 @@ "typedoc-plugin-missing-exports": "^1.0.0", "typedoc-plugin-rename-defaults": "^0.6.4", "typescript": "^4.6.3", - "xvfb-maybe": "^0.2.1" + "xvfb-maybe": "^0.2.1", + "yaml-hook": "^1.0.0" }, "optionalDependencies": { "@malept/electron-installer-flatpak": "^0.11.2", diff --git a/packages/api/core/package.json b/packages/api/core/package.json index feb46450db..3ce2ea53dd 100644 --- a/packages/api/core/package.json +++ b/packages/api/core/package.json @@ -36,7 +36,8 @@ "mocha": "^9.0.1", "proxyquire": "^2.1.3", "sinon": "^13.0.1", - "sinon-chai": "^3.6.0" + "sinon-chai": "^3.6.0", + "yaml-hook": "^1.0.0" }, "dependencies": { "@electron-forge/core-utils": "6.0.1", diff --git a/packages/api/core/test/fast/forge-config_spec.ts b/packages/api/core/test/fast/forge-config_spec.ts index c43b293a53..99e3cfa5e0 100644 --- a/packages/api/core/test/fast/forge-config_spec.ts +++ b/packages/api/core/test/fast/forge-config_spec.ts @@ -114,7 +114,6 @@ describe('forge-config', () => { expect(conf.defaultResolved).to.equal(true); }); - // @TODO make sure this test passes it(`should resolve the yml config from forge.config.yml if it's specified in config.forge`, async () => { type DefaultResolvedConfig = ResolvedForgeConfig; const conf = (await findConfig(path.resolve(__dirname, '../fixture/dummy_ts_conf'))) as DefaultResolvedConfig; diff --git a/yarn.lock b/yarn.lock index 2719308b38..024ffae10f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7493,7 +7493,7 @@ js-yaml@4.1.0, js-yaml@^4.1.0: dependencies: argparse "^2.0.1" -js-yaml@^3.10.0, js-yaml@^3.13.1: +js-yaml@^3.10.0, js-yaml@^3.12.2, js-yaml@^3.13.1: version "3.14.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== @@ -11555,6 +11555,14 @@ yallist@^4.0.0: resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== +yaml-hook@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/yaml-hook/-/yaml-hook-1.0.0.tgz#14d682e949a9cf6f041e2af8278a4d349ccb52b7" + integrity sha512-iqSS5Mk1F3yBtrfx94hWzmEk0Wxs5QoBRvngAe39t0XA2JJ3jhQN6Snwv/shH1VoZr+ntdhf4EDLmW0WUWBjdQ== + dependencies: + js-yaml "^3.12.2" + pirates "^4.0.1" + yaml@^1.10.0, yaml@^1.10.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"