From caecce9b41cacf9450c552c991777c36b048f005 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 28 Jul 2020 15:35:45 -0400 Subject: [PATCH] tests: update integration tests to include yarn packages Signed-off-by: Alfredo Deza --- test/integration/fixture_pkg_coverage_test.go | 8 ++++++++ .../image-pkg-coverage/javascript/yarn/yarn.lock | 12 ++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/integration/test-fixtures/image-pkg-coverage/javascript/yarn/yarn.lock diff --git a/test/integration/fixture_pkg_coverage_test.go b/test/integration/fixture_pkg_coverage_test.go index 7b6524d42..4a59d4e0d 100644 --- a/test/integration/fixture_pkg_coverage_test.go +++ b/test/integration/fixture_pkg_coverage_test.go @@ -68,6 +68,14 @@ var cases = []struct { "get-stdin": "8.0.0", }, }, + { + name: "find javascript yarn packages", + pkgType: pkg.YarnPkg, + pkgLanguage: pkg.JavaScript, + pkgInfo: map[string]string{ + "@babel/code-frame": "7.10.4", + }, + }, { name: "find python egg packages", pkgType: pkg.EggPkg, diff --git a/test/integration/test-fixtures/image-pkg-coverage/javascript/yarn/yarn.lock b/test/integration/test-fixtures/image-pkg-coverage/javascript/yarn/yarn.lock new file mode 100644 index 000000000..a97627b6c --- /dev/null +++ b/test/integration/test-fixtures/image-pkg-coverage/javascript/yarn/yarn.lock @@ -0,0 +1,12 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.10.4.tgz#168da1a36e90da68ae8d49c0f1b48c7c6249213a" + integrity sha512-vG6SvB6oYEhvgisZNFRmRCUkLz11c7rp+tbNTynGqc6mS1d5ATd/sGyV6W0KZZnXRKMTzZDRgQT3Ou9jhpAfUg== + dependencies: + "@babel/highlight" "^7.10.4" + +