From 57644c3620900ca93dfce86f4f5d9d3259a51a83 Mon Sep 17 00:00:00 2001 From: Ryan Kennedy Date: Tue, 31 Mar 2020 12:42:50 -0400 Subject: [PATCH] fix: update test snap I'm surprised I allowed tests this brittle to make it into the codebase --- src/__tests__/__snapshots__/index.test.js.snap | 2 ++ src/__tests__/index.test.js | 16 ++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/__tests__/__snapshots__/index.test.js.snap b/src/__tests__/__snapshots__/index.test.js.snap index 4e71a1e..50f62ba 100644 --- a/src/__tests__/__snapshots__/index.test.js.snap +++ b/src/__tests__/__snapshots__/index.test.js.snap @@ -22,6 +22,7 @@ Array [ "is-sorted/test/fixtures.json", "is-sorted/test/index.js", "map-obj", + "map-obj/index.d.ts", "map-obj/index.js", "map-obj/license", "map-obj/package.json", @@ -42,6 +43,7 @@ Array [ "nodejs/node_modules/is-sorted/test/fixtures.json", "nodejs/node_modules/is-sorted/test/index.js", "nodejs/node_modules/map-obj", + "nodejs/node_modules/map-obj/index.d.ts", "nodejs/node_modules/map-obj/index.js", "nodejs/node_modules/map-obj/license", "nodejs/node_modules/map-obj/package.json", diff --git a/src/__tests__/index.test.js b/src/__tests__/index.test.js index 52edbba..12a41df 100644 --- a/src/__tests__/index.test.js +++ b/src/__tests__/index.test.js @@ -128,8 +128,8 @@ describe('@ryaninvents/plugin-bundle-dependencies', () => { dependencies: { // Use a couple of packages known to basically be one-liners // in order to test quickly - 'is-sorted': 'latest', - 'map-obj': 'latest' + 'is-sorted': '=1.0.5', + 'map-obj': '=4.1.0' } }, stdio: 'inherit' @@ -158,8 +158,8 @@ describe('@ryaninvents/plugin-bundle-dependencies', () => { dependencies: { // Use a couple of packages known to basically be one-liners // in order to test quickly - 'is-sorted': 'latest', - 'map-obj': 'latest' + 'is-sorted': '=1.0.5', + 'map-obj': '=4.1.0' } }, stdio: 'inherit' @@ -178,8 +178,8 @@ describe('@ryaninvents/plugin-bundle-dependencies', () => { dependencies: { // Use a couple of packages known to basically be one-liners // in order to test quickly - 'is-sorted': 'latest', - 'map-obj': 'latest' + 'is-sorted': '=1.0.5', + 'map-obj': '=4.1.0' } }, stdio: 'inherit' @@ -198,8 +198,8 @@ describe('@ryaninvents/plugin-bundle-dependencies', () => { dependencies: { // Use a couple of packages known to basically be one-liners // in order to test quickly - 'is-sorted': 'latest', - 'map-obj': 'latest' + 'is-sorted': '=1.0.5', + 'map-obj': '=4.1.0' }, '@pika/pack': { 'pipeline': [