Skip to content

Commit

Permalink
chore: final mock fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Apr 2, 2024
1 parent 8a810c9 commit ce7c34d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -128,7 +128,7 @@
"root": true,
"ignorePatterns": [
"lib",
"src/__mocks__"
"__mocks__"
],
"extends": [
"plugin:@typescript-eslint/recommended",
Expand Down
2 changes: 1 addition & 1 deletion src/__mocks__/TrueSheet.js → src/__mocks__/index.js
Original file line number Diff line number Diff line change
@@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"allowJs": false,
"allowSyntheticDefaultImports": true
},
"exclude": ["lib", "src/__mocks__"]
"exclude": ["lib", "__mocks__"]
}

0 comments on commit ce7c34d

Please sign in to comment.