diff --git a/test/config/__snapshots__/validation.spec.ts.snap b/test/config/__snapshots__/validation.spec.ts.snap index b8f36dbfb948f2fb2b6a71b87772f10ae1b06ef4..05e4eb1e594d6c4f7aec7a72e9bc7c05b533e173 100644 --- a/test/config/__snapshots__/validation.spec.ts.snap +++ b/test/config/__snapshots__/validation.spec.ts.snap @@ -90,17 +90,6 @@ Array [ ] `; -exports[`config/validation validateConfig(config) included unsupported manager 1`] = ` -Array [ - Object { - "depName": "Configuration Error", - "message": "packageRules: - You have included an unsupported manager in a package rule. Your list: foo. - Supported managers are: (ansible, bazel, buildkite, bundler, cargo, cdnurl, circleci, composer, deps-edn, docker-compose, dockerfile, droneci, git-submodules, github-actions, gitlabci, gitlabci-include, gomod, gradle, gradle-wrapper, helm-requirements, helmfile, homebrew, kubernetes, leiningen, maven, meteor, mix, npm, nuget, nvm, pip_requirements, pip_setup, pipenv, poetry, pub, sbt, swift, terraform, travis, ruby-version).", - }, -] -`; - exports[`config/validation validateConfig(config) returns deprecation warnings 1`] = ` Array [ Object { diff --git a/test/config/validation.spec.ts b/test/config/validation.spec.ts index d9aae76246778b63b933f69a78bd7ef5a7e6813f..fca675808ccc0e5cafe262333e0e072fcd83211a 100644 --- a/test/config/validation.spec.ts +++ b/test/config/validation.spec.ts @@ -55,7 +55,7 @@ describe('config/validation', () => { ); expect(warnings).toHaveLength(0); expect(errors).toHaveLength(1); - expect(errors).toMatchSnapshot(); + expect(errors[0].message.includes('ansible')).toBe(true); }); it('included managers of the wrong type', async () => { const config = { diff --git a/test/workers/repository/extract/__snapshots__/index.spec.ts.snap b/test/workers/repository/extract/__snapshots__/index.spec.ts.snap index d63407073d8d629a094ef464cbf439d09152fd82..c3293e31cf1b3203791acc88238fd03d60c3a67f 100644 --- a/test/workers/repository/extract/__snapshots__/index.spec.ts.snap +++ b/test/workers/repository/extract/__snapshots__/index.spec.ts.snap @@ -1,130 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`workers/repository/extract/index extractAllDependencies() runs 1`] = ` -Object { - "ansible": Array [ - Object {}, - ], - "bazel": Array [ - Object {}, - ], - "buildkite": Array [ - Object {}, - ], - "bundler": Array [ - Object {}, - ], - "cargo": Array [ - Object {}, - ], - "cdnurl": Array [ - Object {}, - ], - "circleci": Array [ - Object {}, - ], - "composer": Array [ - Object {}, - ], - "deps-edn": Array [ - Object {}, - ], - "docker-compose": Array [ - Object {}, - ], - "dockerfile": Array [ - Object {}, - ], - "droneci": Array [ - Object {}, - ], - "git-submodules": Array [ - Object {}, - ], - "github-actions": Array [ - Object {}, - ], - "gitlabci": Array [ - Object {}, - ], - "gitlabci-include": Array [ - Object {}, - ], - "gomod": Array [ - Object {}, - ], - "gradle": Array [ - Object {}, - ], - "gradle-wrapper": Array [ - Object {}, - ], - "helm-requirements": Array [ - Object {}, - ], - "helmfile": Array [ - Object {}, - ], - "homebrew": Array [ - Object {}, - ], - "kubernetes": Array [ - Object {}, - ], - "leiningen": Array [ - Object {}, - ], - "maven": Array [ - Object {}, - ], - "meteor": Array [ - Object {}, - ], - "mix": Array [ - Object {}, - ], - "npm": Array [ - Object {}, - ], - "nuget": Array [ - Object {}, - ], - "nvm": Array [ - Object {}, - ], - "pip_requirements": Array [ - Object {}, - ], - "pip_setup": Array [ - Object {}, - ], - "pipenv": Array [ - Object {}, - ], - "poetry": Array [ - Object {}, - ], - "pub": Array [ - Object {}, - ], - "ruby-version": Array [ - Object {}, - ], - "sbt": Array [ - Object {}, - ], - "swift": Array [ - Object {}, - ], - "terraform": Array [ - Object {}, - ], - "travis": Array [ - Object {}, - ], -} -`; - exports[`workers/repository/extract/index extractAllDependencies() skips non-enabled maangers 1`] = ` Object { "npm": Array [ diff --git a/test/workers/repository/extract/index.spec.ts b/test/workers/repository/extract/index.spec.ts index 66082da9e7fc67a51ff69c6521ab68e72c88523e..cc53889a2f17ef4f04c3c46892411b3b7a289b23 100644 --- a/test/workers/repository/extract/index.spec.ts +++ b/test/workers/repository/extract/index.spec.ts @@ -17,7 +17,7 @@ describe('workers/repository/extract/index', () => { it('runs', async () => { managerFiles.getManagerPackageFiles.mockResolvedValue([{} as never]); const res = await extractAllDependencies(config); - expect(res).toMatchSnapshot(); + expect(Object.keys(res).includes('ansible')).toBe(true); }); it('skips non-enabled maangers', async () => { config.enabledManagers = ['npm'];