From e95dac11f9a419d633e239ad5752ee176a88e13b Mon Sep 17 00:00:00 2001 From: Matt Apperson Date: Thu, 12 Sep 2019 10:52:59 -0400 Subject: [PATCH] Release 1.4.3 --- package.json | 2 +- src/memorize.ts | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index c9857d2..9074ea5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@mattapperson/slapshot", - "version": "1.4.2", + "version": "1.4.3", "main": "lib/index.js", "description": "Mock method calls with snapshots, run your intigation tests online or offline!", "license": "MIT", diff --git a/src/memorize.ts b/src/memorize.ts index 76b2e53..1527b3f 100644 --- a/src/memorize.ts +++ b/src/memorize.ts @@ -52,7 +52,7 @@ export function memorize( .split(".") .slice(0, -1) .join("."); - const basename = `${path.basename(testPath)}.snap`; + const basename = `${path.basename(testPath)}.slap_snap`; const snapFile = path.resolve( testPath, "..", @@ -106,7 +106,6 @@ export function memorize( results: null }, jestContext, - snapshots, validateSnapshot ); }) @@ -119,7 +118,6 @@ export function memorize( results: methodResults }, jestContext, - snapshots, validateSnapshot ); }); @@ -131,7 +129,6 @@ export function memorize( fullSnapshotName, methodResults, jestContext, - snapshots, validateSnapshot ); } @@ -142,7 +139,6 @@ function resolveData( fullSnapshotName: string, methodResults: SlapshotDataFormat, jestContext: any, - snapshots: Snapshot, validateSnapshot: ValidationOptions ) { if (!shouldUpdateSnapshot() && runInOnlineMode()) {