diff --git a/package.json b/package.json index 7b9de69..dc23d9e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lodev09/react-native-true-sheet", - "version": "0.4.3", + "version": "0.4.5", "description": "The true native bottom sheet. 💩", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -128,7 +128,7 @@ "root": true, "ignorePatterns": [ "lib", - "src/__mocks__" + "__mocks__" ], "extends": [ "plugin:@typescript-eslint/recommended", diff --git a/src/__mocks__/TrueSheet.js b/src/__mocks__/index.js similarity index 74% rename from src/__mocks__/TrueSheet.js rename to src/__mocks__/index.js index 1dc57fc..7ac34fc 100644 --- a/src/__mocks__/TrueSheet.js +++ b/src/__mocks__/index.js @@ -1,7 +1,7 @@ import React from 'react' import { View } from 'react-native' -export default class TrueSheet extends React.Component { +export class TrueSheet extends React.Component { dismiss = jest.fn() present = jest.fn() diff --git a/tsconfig.json b/tsconfig.json index d682f92..e3331b4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -27,5 +27,5 @@ "allowJs": false, "allowSyntheticDefaultImports": true }, - "exclude": ["lib", "src/__mocks__"] + "exclude": ["lib", "__mocks__"] }