Skip to content
Snippets Groups Projects
Commit a253e9d6 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

test: remove noisy snapshots

Ref #5277
parent 30f0c423
Branches
No related tags found
No related merge requests found
...@@ -90,17 +90,6 @@ Array [ ...@@ -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`] = ` exports[`config/validation validateConfig(config) returns deprecation warnings 1`] = `
Array [ Array [
Object { Object {
......
...@@ -55,7 +55,7 @@ describe('config/validation', () => { ...@@ -55,7 +55,7 @@ describe('config/validation', () => {
); );
expect(warnings).toHaveLength(0); expect(warnings).toHaveLength(0);
expect(errors).toHaveLength(1); expect(errors).toHaveLength(1);
expect(errors).toMatchSnapshot(); expect(errors[0].message.includes('ansible')).toBe(true);
}); });
it('included managers of the wrong type', async () => { it('included managers of the wrong type', async () => {
const config = { const config = {
......
// Jest Snapshot v1, https://goo.gl/fbAQLP // 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`] = ` exports[`workers/repository/extract/index extractAllDependencies() skips non-enabled maangers 1`] = `
Object { Object {
"npm": Array [ "npm": Array [
......
...@@ -17,7 +17,7 @@ describe('workers/repository/extract/index', () => { ...@@ -17,7 +17,7 @@ describe('workers/repository/extract/index', () => {
it('runs', async () => { it('runs', async () => {
managerFiles.getManagerPackageFiles.mockResolvedValue([{} as never]); managerFiles.getManagerPackageFiles.mockResolvedValue([{} as never]);
const res = await extractAllDependencies(config); const res = await extractAllDependencies(config);
expect(res).toMatchSnapshot(); expect(Object.keys(res).includes('ansible')).toBe(true);
}); });
it('skips non-enabled maangers', async () => { it('skips non-enabled maangers', async () => {
config.enabledManagers = ['npm']; config.enabledManagers = ['npm'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment