From c086039d69a7c8ca113d598340da9d40af659426 Mon Sep 17 00:00:00 2001 From: Elvira Burchik Date: Fri, 25 Mar 2022 09:21:24 +0100 Subject: [PATCH] Fix lint issues --- fixture/package.json | 1 + fixture/src/Detox/PixelDifference.ts | 3 ++- fixture/src/Detox/SnapshotAsserts.ts | 2 +- fixture/src/Detox/SnapshotLocation.ts | 1 + fixture/yarn.lock | 5 +++++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fixture/package.json b/fixture/package.json index a35fde1d0..d96cc6036 100644 --- a/fixture/package.json +++ b/fixture/package.json @@ -22,6 +22,7 @@ "@types/pngjs": "^6.0.1", "detox": "^19.5.7", "pixelmatch": "^5.2.1", + "pngjs": "^6.0.0", "react": "17.0.2", "react-native": "0.67.4", "react-native-fast-image": "^8.5.11", diff --git a/fixture/src/Detox/PixelDifference.ts b/fixture/src/Detox/PixelDifference.ts index 49d6bb2f7..f40f2e613 100644 --- a/fixture/src/Detox/PixelDifference.ts +++ b/fixture/src/Detox/PixelDifference.ts @@ -1,5 +1,6 @@ -import pixelmatch from "pixelmatch"; import * as fs from "fs"; + +import pixelmatch from "pixelmatch"; import { PNG } from "pngjs"; export const pixelDifference = ( diff --git a/fixture/src/Detox/SnapshotAsserts.ts b/fixture/src/Detox/SnapshotAsserts.ts index ddca119a0..ada694763 100644 --- a/fixture/src/Detox/SnapshotAsserts.ts +++ b/fixture/src/Detox/SnapshotAsserts.ts @@ -1,6 +1,6 @@ import * as path from "path"; -import { ensureArtifactsLocation, saveDiff } from "./SnapshotLocation"; +import { ensureArtifactsLocation, saveDiff } from "./SnapshotLocation"; import { pixelDifference } from "./PixelDifference"; export const assertSnapshot = (snapshotPath: string, testName: string) => { diff --git a/fixture/src/Detox/SnapshotLocation.ts b/fixture/src/Detox/SnapshotLocation.ts index 7b542649d..871648417 100644 --- a/fixture/src/Detox/SnapshotLocation.ts +++ b/fixture/src/Detox/SnapshotLocation.ts @@ -1,5 +1,6 @@ import * as path from "path"; import * as fs from "fs"; + import detox from "detox"; import { PNG } from "pngjs"; diff --git a/fixture/yarn.lock b/fixture/yarn.lock index 713422379..7ccc4a006 100644 --- a/fixture/yarn.lock +++ b/fixture/yarn.lock @@ -5417,6 +5417,11 @@ pngjs@^4.0.1: resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-4.0.1.tgz#f803869bb2fc1bfe1bf99aa4ec21c108117cfdbe" integrity sha512-rf5+2/ioHeQxR6IxuYNYGFytUyG3lma/WW1nsmjeHlWwtb2aByla6dkVc8pmJ9nplzkTA0q2xx7mMWrOTqT4Gg== +pngjs@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-6.0.0.tgz#ca9e5d2aa48db0228a52c419c3308e87720da821" + integrity sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg== + posix-character-classes@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab"